Formal Review of std.regex (FReD)

Jacob Carlborg doob at me.com
Wed Oct 12 23:30:25 PDT 2011


On 2011-10-12 21:41, Dmitry Olshansky 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?

Shouldn't "." exclude newlines? I think this is a good reference:

http://www.regular-expressions.info/reference.html

Which says:

Matches any single character except line break characters \r and \n. 
Most regex flavors have an option to make the dot match line break 
characters too.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list