Formal Review of std.regex (FReD)

kennytm kennytm at gmail.com
Wed Oct 12 16:35:49 PDT 2011


Dmitry Olshansky <dmitry.olsh at gmail.com> wrote:
> On 12.10.2011 23:32, kennytm wrote:
>> Dmitry Olshansky<dmitry.olsh at gmail.com>  wrote:
>>> Fresh version of documentation is here:
>>> http://blackwhale.github.com/
>>> 
>>> This fixes all typos reported so far, adds missing overload of replace
>>> (ouch!) and introduces a brand new syntax table.
>> 
>> The '.' really matches any character, including the new line '\n'?
> 
> Hm, yes. Is that a problem?

Most regex flavors don't match '\n' by default unless you supply the "s"
flag -- including ECMAScript (well it doesn't even provide the "s" flag to
allow '.' to match all characters). 

While I am OK with having "s" turned on by default, this should at least be
documented explicitly.


More information about the Digitalmars-d mailing list