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

Re: help in understanding a regex

by 2teez (Priest)
on Nov 16, 2012 at 22:56 UTC ( #1004258=note: print w/ replies, xml ) Need Help??

in reply to help in understanding a regex

with $string =~ m/[^/]+)$/; using strict and warnings, you would get unmatched error [ in regex ...
Please note the usage of the "/" as the delimiter,
which you have to "escape" to use within the m// like so: $string =~ m/[^\/]+)$/;
Please check the subtitle m/PATTERN/msixpodualgc under Regexp-Quote-Like-Operators

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Comment on Re: help in understanding a regex
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2015-11-28 03:40 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 (737 votes), past polls