Updated: I thought it might be useful for you to have a read of the perlre documentation on CPAN here. Look for quotemeta.if ($text =~ /.*\Q$stub\E.*/s) { #do something }
In reply to Re: Matching brackets in Regular Expression
by Roger
in thread Matching brackets in Regular Expression
by Levan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |