[Issue 1249] regular expression pattern [.] not matches any character

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 21 09:19:33 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1249





------- Comment #3 from baryluk at mpi.int.pl  2007-06-21 11:19 -------
(In reply to comment #1)
> I think '.' and other special characters  lose their special meaning inside a
> character class.  So [.()$^] should match either a period, a paren, a
> dollar-sign, or a caret, and nothing else.

You are rigth, but actually ^ must be escaped: [.()$\^]. And IMHO this is not a
bug. One can discuss but most of regular expression eninges also does so.


-- 



More information about the Digitalmars-d-bugs mailing list