$ being equivalent to Ruby's
\z, what other subtle differences are there between the two regular expression engines?
I'm looking for subtle differences where the same regex might behave differently, for example
/^abc$/ will match this in Ruby:
123 abc def
\A(start of string)
\Z(end of string, before final line break)
\z(end of string)
\G(start of match attempt)
#starts a comment
[:alpha:]POSIX character class
(?s)(dot matches newlines) (?m)
$match at line breaks) (
(?-ismxn)(turn off mode modifiers)
(?ismxn:group)(mode modifiers local to group)
©2020 All rights reserved.