It's a straight global substitution,
$s =~ s!(\d+)!<a href="http://www.$1.com">$1</a>!g;
After Compline,
Zaxo
In reply to Re: replacing all strings of numbers with a link
by Zaxo
in thread replacing all strings of numbers with a link
by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |