Here's yet another example of how to replace something, but not everything without a loop.
$txt =~ s/($replacethis)/($1 ne "notthis" && $1 ne "nothistoo") ? "wit +hthis" : $1/ge;
In reply to Re: How to not match some words but match all the others
by bradcathey
in thread How to not match some words but match all the others
by set_uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |