what is \s+ and \S+ means in re.compile?
ed at leafe.com
Sun Mar 20 16:17:54 CET 2005
On Mar 20, 2005, at 9:59 AM, sam wrote:
> I was confused by \s+ and \S+ in python.
> The second one (\S+) is stand for matching all alphabets except for
> digit and space? How about the first one?
From the docs:
Matches any whitespace character; this is equivalent to the set [
Matches any non-whitespace character; this is equivalent to the set [^
Come to PyCon!!!! http://www.python.org/pycon/2005/
More information about the Python-list