Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Inefficient regex

by Thelonius (Priest)
on Mar 05, 2003 at 19:40 UTC ( [id://240678]=note: print w/replies, xml ) Need Help??


in reply to Re: Inefficient regex
in thread Inefficient regex

Note:\S+ is the same as [^\s+]

Replies are listed 'Best First'.
Re: Re: Re: Inefficient regex
by sutch (Curate) on Mar 05, 2003 at 20:14 UTC
    Thelonius, your note is not correct:

    \s+ - matches one or more space characters
    [^\s+] - matches one character that is not a space nor a '+'
    [^\s]+ - (what you may have meant) matches one or more non-space characters.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found