Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Regex - Delimiter question

by Hofmator (Curate)
on Sep 29, 2006 at 14:30 UTC ( [id://575536]=note: print w/replies, xml ) Need Help??


in reply to Regex - Delimiter question

See perlop under 'Gory details of parsing quoted constructs' -> 'Removal of backslashes before delimiters'

With the '.' being the delimiter, the backslash before the dot is removed before the regex parser sees the expression. So your code is equivalent to s/.// which explains your result.

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found