Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: backslash in regex

by Pardus (Pilgrim)
on Feb 02, 2003 at 11:00 UTC ( [id://231985]=note: print w/replies, xml ) Need Help??


in reply to Re: backslash in regex
in thread backslash in regex

 if ( $dir =~ /^\Q$fav\\\E/ ) { # Note the \E at the end! won't work -- the problem is under \Q modifier the backslash at the end matches wrong  if ( $dir =~ /^\Q$fav\E\\/ ) { works
--
Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org>
>>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found