in reply to RE: Quantifiers in regular expressions
in thread Quantifiers in regular expressions
I don't understand this:
$string = "<foo>...</foo><bar>...</bar>";
# This matches <foo></bar>, not what we want.
$string =~ /\<.*\>(.*)\</.*\>/;
How does it match? And I thought that the matching operator was m//, not m///. What does m/// do?
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: RE: Quantifiers in regular expressions
by le (Friar) on Jul 20, 2000 at 11:30 UTC | |
Re: RE: RE: Quantifiers in regular expressions
by Anonymous Monk on Sep 24, 2002 at 23:05 UTC |
In Section
Tutorials