in reply to Re: matching special char
in thread matching special char

Thanks for your reply,

I tested the string:

my $x = chr(174); binmode STDOUT, ':utf8'; print "x has length ", length($x), " >>$x<<\n";

It showed up as one char,

my $string = chr(174); my $contents =~ /$x/\&reg;/g;

This results in the proper substitution, I did search for an extended ascii table for the symbol, but somehow missed it. I will be looking up more information on the two solutions you showed.

Thanks again,