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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 26 21:53:01 PDT 2007


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





------- Comment #1 from wbaxter at gmail.com  2007-05-26 23:52 -------
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.  If it's not documented as such then
maybe this is a documentation needs to make that clear.  That sort of behavior
is pretty common of regexp implementations.  Why would you want to put a 'match
any character' symbol inside a 'match any of these characters' construct.  [.]
would mean the same thing as a plain period.


-- 



More information about the Digitalmars-d-bugs mailing list