Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: regexp: match anything but "/"

by Zaxo (Archbishop)
on Jun 29, 2005 at 08:43 UTC ( #470925=note: print w/replies, xml ) Need Help??


in reply to regexp: match anything but "/"

A negated character class will do it,

if ( m![^/]! ) { # . . . }
I used a different match delimiter so I didn't have to escape "/".

After Compline,
Zaxo

Replies are listed 'Best First'.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://470925]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-10-20 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (266 votes). Check out past polls.

    Notices?