Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: A question on Regex

by ssandv (Hermit)
on Mar 24, 2010 at 19:43 UTC ( [id://830651]=note: print w/replies, xml ) Need Help??


in reply to A question on Regex

you need to anchor it to the end of line, like so:
if($mystring =~ m!([^/]+$)!){ #note the $ character added

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found