Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need two vars, $1 and $2 for this $content. I want to match the top text into 1 and everything after the first BR to the NEXT it finds. There will never be a premature tag so I want everything out of there to be in $2.cingular">text to match here </font> </b><br> <br> all of this stuff no matter what BR tags or whatever is found should be matched </p>
This is my attempt
$content =~ m#cingular">(.+?)<\/font>\s*<\/b><br>(.+?)<\/p>#xi;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: small regex
by davidrw (Prior) on Jul 01, 2006 at 00:48 UTC | |
|
Re: small regex
by TedPride (Priest) on Jul 01, 2006 at 00:51 UTC |