group in regexp ?

HP Wei hp@REDACTED
Wed Apr 16 20:06:01 CEST 2003


> regexp:matches("  first=string second=test end", 
                 "first=(.*) second=(.*) end").
{match,[{3,28}]}

*** How do I get the matched string in the first group ?

  first group match  = string
  second group match = test

hp




More information about the erlang-questions mailing list