From: Yukihiro Matsumoto Date: 2010-09-04T12:01:08+09:00 Subject: [ruby-core:32050] Re: suggestion: not use multi-line mode by default 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 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.