regexp bug (literal dot)

Willem Broekema <>
Mon Mar 25 23:57:28 CET 2002


Hi all,

 From what I understand, in regexps, "." means 'any char' and "\." means a 
literal dot.

So, the following is a bug:

170> regexp:match("a", ".").
{match,1,1}

171> regexp:match("a", "\.").
{match,1,1}  % shouldn't match!


- Willem




More information about the erlang-questions mailing list