\s doesn't match

r at dslsubc13.ultracom.net r at dslsubc13.ultracom.net
Fri Dec 24 13:48:36 EST 1999


I did this:

a = 'a b'
if match(r'\s',a): print 'error'

and it didn't match.

a = ' b'

and it did match. Documentation seems to imply that \s matches whitespace anywhere in the string, what gives?

-- 
- Andrei



More information about the Python-list mailing list