in reply to Substitutions are happening in the wrong place
in the regex:[^</]
leads me to wonder if you might be thinking that the </ is acting as a unit.if ($intext =~ s#$links{$_}([^</]+)</a>#$1#ig)
The way it is written I believe you'll be looking for any character not equal to < and not equal to /.
There could be a / in your text for some of the links.
For example: "This stuff and/or that stuff"
Claude
|
---|