in reply to Regexp to extract HTML link data
Anyway, here's an untested attempt. Most likely, it breaks on your second example:
my (undef, $new, $hit) = $in =~ m{ <td><img \s+ src \s* = \s* (["']) foo[.]jpg \1 > (<a \s+ href \s* = (["']) [^"']* \4 > [^<]* </a>}ix;
Abigail
|
|---|