$string =~ /\Q$text\E/; # or $safe = quotemeta $text; $string =~ /$safe/;
In reply to Re: How to escape out *?+ in strings for substit.
by japhy
in thread How to escape out *?+ in strings for substit.
by bagel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |