[erlang-questions] regexp sux! (but perhaps less now)
tobbe
tobbe@REDACTED
Mon Jun 4 12:31:40 CEST 2007
1> re:match("now/plus42hours/","^now/(plus|minus)(d{1,2})hours/$").
nomatch
2> re:smatch("now/plus42hours/","^now/(plus|minus)([[:alnum:]])hours/$").
nomatch
3> re:smatch("now/plus42hours/","now/(plus|minus)([[:alnum:]])hours/").
nomatch
Que?
Also, it would be really nice with some docs with lots of examples.
Or, why not provide an Eunit test file? That would help you to do
regression testing and give good examples in one place.
Cheers, Tobb
_________________________________________________________
Post sent from http://www.trapexit.org
More information about the erlang-questions
mailing list