You are using ($WORD). This will consider the () to be a group. If you are wanting to find the () as well as the $WORD you need to try this:$LINE =~ s/($WORD)/<font color=red><b><i>$1<\/i><\/b><\/font>/gi
$LINE =~ s/\(($WORD)\)/<font color=red><b><i>$1<\/i><\/b><\/font>/gi
In reply to Re: Substitution Problem
by RoyCrowder
in thread Substitution Problem
by david.paige
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |