From: "Bartosz DziewoƄski" Date: 2013-03-05T21:26:51+09:00 Subject: Re: YourLanguageSucks On Tue, 05 Mar 2013 13:08:24 +0100, Robert Klemme wrote: > Note that Ruby's "multi line" mode is about matching of "." and not > about anchoring of ^ and $. I'm not even sure there is a general > definition of "multi line mode" for regular expressions across > language. > >> "a\nb\nc"[/^.*$/] > => "a" >> "a\nb\nc"[/^.*$/m] > => "a > b > c" In reasonable languages this is called a 'dotall' mode and denoted with an 's' modifier. Calling it 'multiline' is dumb and confusing, so let's not do this :) ; it is in fact also called 'singleline' in some sources (which is even dumber). -- Matma Rex