On Tue, Mar 5, 2013 at 1:26 PM, Bartosz DziewoƄski <[email protected]> wrote:
> On Tue, 05 Mar 2013 13:08:24 +0100, Robert Klemme
> <[email protected]> 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.

What is a "reasonable language"?

> 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).

Since there are two different anchors for begin / end of line and
begin / end of string a multi line mode which switches anchoring
behavior of ^ and $ does not really make sense in Ruby.  For me the
issue claimed on the web site referenced does not exist.

Glancing over the list I wouldn't worry too much.  Some information is
outdated, some information is completely subjective. There are also
"issues" which are common to multiple language. That might be an
indication that the criteria are not widely shared.

Kind regards

robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- 
[email protected] | 
https://groups.google.com/d/forum/ruby-talk-google?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruby-talk-google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to