in reply to Substitution Problem
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
|
|---|