regexp:first_match
Bengt Kleberg
eleberg@REDACTED
Mon Nov 19 13:41:23 CET 2001
> To: Niels Christensen <christen@REDACTED>
> cc: erlang-questions@REDACTED
> Subject: Re: regexp:first_match
> Date: Mon, 19 Nov 2001 12:33:46 +0000
> From: Robert Raschke <rtr@REDACTED>
>
> Hi,
>
> I don't know much about the regexp module in Erlang, but in general
> all (?) regexp packages try and match the longest sequence. Try
According to the documentation
regexp:match()
will get thet longest match, exactly as you state.
regexp:first_match()
is documented as only matching the first match (which should be the one Niels
Christensen wanted).
bengt
More information about the erlang-questions
mailing list