regexp:first_match

Niels Christensen christen@REDACTED
Mon Nov 19 08:40:08 CET 2001


Reading the documentation for regexp, I am surprised that

2> regexp:first_match("<DATE>22-03-03</DATE>","<.+>").
{match,1,21}
3>

I should have thought (and wanted!) the result to be

{match,1,6}

Anyone know why not?

Niels Christensen





More information about the erlang-questions mailing list