in reply to
Re: Inefficient regex
in thread Inefficient regex
Note:\S+ is the same as [^\s+]
\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.
Other opinion (please explain)
Results (318 votes),