in reply to matching special char

Aside from the error pointed out by others already - is the data from some HTML source?

Maybe it's ® or ®?

$contents =~ s/\®/\®/g; $contents =~ s/\®/\®/g;

Can you tell us more about the source?

Regards

mwa