Hi,
In message "Re: [ruby-core:32044] suggestion: not use multi-line mode by default"
on Sat, 4 Sep 2010 01:38:59 +0900, Roger Pack <rogerdpack2 / gmail.com> writes:
|It is a bit confusing that Ruby's regex's use "quasi" multi-line mode
|by default.
|http://stackoverflow.com/questions/3632024/why-do-rubys-regular-expressions-use-a-and-z-instead-of-and
It a good compromise between multi-line and single-line matches. If
you are sure strings contain only one line, you don't have to care
about multi-line mode; if you are not sure, you have to care about ^
and $ anyway. I don't think it's worth to change this (and introduce
incompatibility).
matz.