in reply to Re^2: regex: something...(!something)...something
in thread regex: something...(!something)...something

Hi, Sorry about that, nonetheless, this code also will do the trick you want :-)
$x =~ s/<td>.*<td>(.*?)3(.*?)<\/td>.*<\/td>/<td>$13$2<\/td>/;