in reply to Re: simple regexp question
in thread simple regexp question

Did you mean

$str =~ s/&(.*?);/&$1 ;/g;

perhaps? Your code as it stands seems to lose the text after the ampersand.

Cheers,

JohnGG