in reply to Re: How to extract a pattern in Perl regex?
in thread How to extract a pattern in Perl regex?
Yes, I'm looking at the recommended methods, and that "^" was a typo.
However part of my question was how do I extract in one statement what's in between the "title tags".
The way I worked around it was:
$result = =~ /(<title>.*<\/title>)/mgi; my $newresult = $1; $newresult =~ s/<title>//i; $newresult =~ s/<\/title>//i;
Surely there's a simpler way?
|
|---|