in reply to Re^3: Annoying Regex issue with forign chars
in thread Annoying Regex issue with forign chars
if ($hit->{TheText}) { $desc =~ s|\Q $_ | <a href="$hit->{LinkURL}" title="$hit-> +{TheText}" target="$hit->{Target}">$_</a> |sg; $desc =~ s|\Q $_\E$| <a href="$hit->{LinkURL}" title="$hit +->{TheText}" target="$hit->{Target}">$_</a>|sg; $desc =~ s|\Q $_,| <a href="$hit->{LinkURL}" title="$hit-> +{TheText}" target="$hit->{Target}">$_</a>, |sg; $desc =~ s|\Q. $_ |. <a href="$hit->{LinkURL}" title="$hit +->{TheText}" target="$hit->{Target}">$_</a> |sg; } else { $desc =~ s|\Q $_ | <a href="$hit->{LinkURL}" target="$hit- +>{Target}">$_</a> |sg; $desc =~ s|\Q $_\E$| <a href="$hit->{LinkURL}" target="$hi +t->{Target}">$_</a>|sg; $desc =~ s|\Q $_, | <a href="$hit->{LinkURL}" target="$hit +->{Target}">$_</a>, |sg; $desc =~ s|\Q. $_ |. <a href="$hit->{LinkURL}" target="$hi +t->{Target}">$_</a> |sg; }
|
|---|