Walter (Phobos): RegExp and dotmatchlf

Unknown W. Brackets unknown at simplemachines.org
Sat May 5 00:18:28 PDT 2007


Well, in PCRE you use something like this:

~a(.+)b~s

Where s is also known as "dotall".  So, why not add it as a flag in the 
constructor?  I'm pretty sure I've seen it used outside Perl too.

-[Unknown]


> Kris wrote:
>> std.RegExp has an attribute 'dotmatchlf' for including newlines in a 
>> match
>> for '.' but there's currently no way to enable that using the RegExp()
>> constructor. Is this an oversight? Or is there another way to enable it?
> 
> I left it off because there didn't seem to be a standard way of doing it.



More information about the Digitalmars-d mailing list