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?
in reply to RE: Quantifiers in regular expressions
in thread Quantifiers in regular expressions