my $content = do {local $/=undef; <DATA>}; $content =~ m#cingular">(.+?)<\/font>\s*<\/b><br>(.+?)<\/p>#si; use Data::Dumper; print Dumper [$1, $2]; __DATA__ 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>
In reply to Re: small regex
by davidrw
in thread small regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |