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