You might want to use the /g modifier. Or what I would do:
$testtext =~ s/^<p>//; $testtext =~ s!</p>$!!; [download]
In reply to Re: simple replace question by JavaFan in thread simple replace question by jck