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.
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (160 votes),