www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Two RegExp Bugs

The first bug keeps the (multiline) pattern "[^$]" from matching
the string "$".

The second bug wrongly matches the (multiline) pattern "$" with
the newline character. The GNU regular expression library
suggests the pattern "foo$" should match the first three (not
four) characters of "foo\nbar".

http://www.delorie.com/gnu/docs/regex/regex_24.html
May 06 2005