P is for Practical | |
PerlMonks |
Re: How do I escape special characters like . / or in a regular expression?by ariels (Curate) |
on Nov 29, 2000 at 17:39 UTC ( [id://43901]=note: print w/replies, xml ) | Need Help?? |
Use the quotemeta function. Or, inside a "double-quotish context" (such as a regexp), you may use \Q...\E to get "..." literally.
In Section
Seekers of Perl Wisdom
|
|