Remember, in a regex *all* the special characters need to be escaped if you are trying to match them explicitly.
Take a look at the perl regex tutorial (perldoc perlretut) -- the information to help you is metacharacters.
Or check out the tutorials here. What you're doing is rather basic, and has been answered before. RegEx Tutorials
In reply to Re: Regex problem
by chakram88
in thread Regex problem
by siraj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |