Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: what function of this Regular Expression?

by iwanthome (Beadle)
on Apr 02, 2004 at 06:58 UTC ( [id://341904]=note: print w/replies, xml ) Need Help??


in reply to what function of this Regular Expression?

thanks everybody who give me advice.

To BrowserUk ,I don't understand how to get interpolated as string when it is "^0\$".Can you explain more detail? thanks!

The reason for the observed behaviour is that a regex with "s as the delimiter get interpolated as a string, before it gets treated as a regex.

my test script like this:

$_ = '0$'; if($_ =~ "^0\$") { print "find\n"; } else { print "not find\n"; } result is: not find
why regex can't match ? It looks like tachyon said "***This is not an RE***. " thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-18 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found