[Tutor] correction - was: Splitting by word boundaries
Michael Janssen
Janssen at rz.uni-frankfurt.de
Fri Aug 15 00:12:00 EDT 2003
On Thu, 14 Aug 2003, Michael Janssen wrote:
[correcting myself]
> Note that re.match doesn't return None if nothing is found but ''
> (unlike re.search)
This is wrong: re.match returns indeed None if the string does not
match the pattern. I have tricked myself using a single & silly
testcase (and not reading the docs).
Michael
More information about the Tutor
mailing list