Use \Q and \E around the part you want escaped. See perlre for more info
In reply to Re: Escaping regex characters in user-defined input
by FunkyMonk
in thread Escaping regex characters in user-defined input
by kscript
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |