Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: Inefficient regex

by Thelonius (Priest)
on Mar 05, 2003 at 19:40 UTC ( #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+]

Comment on Re: Re: Inefficient regex
Select or Download Code
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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2015-11-25 19:54 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 (688 votes), past polls