Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Return value from a binding operator?

by dsheroh (Parson)
on Apr 13, 2013 at 09:50 UTC ( #1028499=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Return value from a binding operator?
in thread Return value from a binding operator?

The ^ metacharacter has different meanings in different parts of a regex.

Normally, it does mean "start of line", as you thought. If the regex were m!^/!, then it would match lines beginning with /.

However, as the first character in a character class, it negates the class, so [^/] means "match any character except /". (But, again, that's only if it's the first character in the class - [/^] means "match either a / or a ^". And [^/^] would match any character except those two.)

Comment on Re^3: Return value from a binding operator?
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-11-28 09:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (740 votes), past polls