regular expressions

0ffh spam at frankhirsch.net
Sun Mar 11 14:03:47 PDT 2007


Hi,

just as a short note, is seems as if either

  a. the regex parser does not work as documented, or
  b. I have somehow messed up.

To be precise, http://www.digitalmars.com/ctg/regular.html says
that "." matches any character. I seem to have found at least
one exception, the newline character "\n".
Example the string "abc\ndef" is not matched by "^\".*\"$",
but is by "^\"(.|\n)*\"$".

Can anyone confirm?

Happy hacking,

	0ffh





More information about the Digitalmars-d mailing list