regexp bug (literal dot)
Vladimir Sekissov
svg@REDACTED
Tue Mar 26 00:30:59 CET 2002
Good day,
willem> From what I understand, in regexps, "." means 'any char' and "\." means a
willem> literal dot.
willem>
willem> So, the following is a bug:
willem>
willem> 170> regexp:match("a", ".").
willem> {match,1,1}
willem>
willem> 171> regexp:match("a", "\.").
willem> {match,1,1} % shouldn't match!
But
(test1@REDACTED)31> regexp:match(".", "\\.").
{match,1,1}
willem>
willem>
willem> - Willem
willem>
- Vladimir
More information about the erlang-questions
mailing list