in reply to Open, Find, Replace, Rewrite, Close.. Advice on best path to take

I guess there'll be quite a few answers to this but here's my attempt:
$newtext = "some new text"; $spantext =~ s/(\<span[^>]+\>)[^<]+(<.*>)/$1${newtext}$2/i; #assuming there's no tags between the spans...

rdfield

update
running

$_='7065726c646f63207065726c7265';system pack"H*",$_
might help too :)