Your regex s/// contains a reference to the string your changing $linkref instead of to the cached regex $re.
$linkref =~ s/($re)/sprintf "%%%02X", ord $1/ge;
In reply to Re: Regex replacement goof
by wind
in thread Regex replacement goof
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |