See quotemeta (and/or the docs for \Q in (I believe) perlop's discussion on quotelikes), and read perlretut.
Update: Added parenthetical about \Q.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: how can I use regular expresion if my string to be matched has round brackets
by Fletch
in thread how can I use regular expresion if my string to be matched has round brackets
by advait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |