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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 27 04:23:19 PDT 2007


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





------- Comment #2 from yidabu at gmail.com  2007-05-27 06:23 -------
> 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.

since . not match newline, I try [.\s] to match anything, but failed. the only
way is (.|\s)

PCRE:
Note that special characters do not retain their special meanings inside [],
with the exception of \\, \^, \-,\[ and \] match the escaped character inside a
set.


-- 



More information about the Digitalmars-d-bugs mailing list