Hi,
Got a bit of a weird issue here;
$_ => été
$desc => "test 123 un été à Tanger. élargir elargir ete"
$desc =~ s|\b\Q$_|<a href="$hit->{LinkURL}" title="$hit->{TheText}" target="$hit->{Target}">$_</a>|sg;
($hit is a hash from earlier on in my code
)
If I change $_ to "un" (i.e just normal letters), then the regex works absolutly perfect. However, with the accented charachters, it screws up - and doesn't do the search + replace
Anyone got any suggestions?
TIA
Andy
Got a bit of a weird issue here;
$_ => été
$desc => "test 123 un été à Tanger. élargir elargir ete"
$desc =~ s|\b\Q$_|<a href="$hit->{LinkURL}" title="$hit->{TheText}" target="$hit->{Target}">$_</a>|sg;
($hit is a hash from earlier on in my code
If I change $_ to "un" (i.e just normal letters), then the regex works absolutly perfect. However, with the accented charachters, it screws up - and doesn't do the search + replace
Anyone got any suggestions?
TIA
Andy