Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Regex - Delimiter question

by Hofmator (Curate)
on Sep 29, 2006 at 14:30 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-08-12 18:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found