Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43901]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found