if (not $string =~ s/\Q$search/$replace/) {
Note that / can be used as the delimiter, since neither the pattern nor the replacement contain literal slashes.
In reply to Re: Regex match inside quotes doesn't work
by choroba
in thread Regex match inside quotes doesn't work
by tobias_hofer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |