As rev_1318 said, you should always escape the special characters by giving backslash.
Also you go through perlre.
Prasad
In reply to Re: regexp matching with "\[" in the substring to be matched
by prasadbabu
in thread regexp matching with "\[" in the substring to be matched
by ISAI student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |