group in regexp ?
Robert Virding
robert.virding@REDACTED
Wed Apr 16 23:24:53 CEST 2003
----- Original Message -----
From: "HP Wei" <hp@REDACTED>
To: <erlang-questions@REDACTED>
Sent: Wednesday, April 16, 2003 8:06 PM
Subject: group in regexp ?
> > 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
You can't do it at the moment, but I am working on an upgrade
to the regexp module which includes this. It works but needs
some more checking before I release it.
Robert
More information about the erlang-questions
mailing list