in reply to
How do I escape special characters like . / or | in a regular expression?
Use the
quotemeta
function. Or, inside a "
double-quotish context
" (such as a
regexp
), you may use
\Q
...
\E
to get "
...
" literally.
Comment on
Re: How do I escape special characters like . / or in a regular expression?
In Section
Seekers of Perl Wisdom