Why doesn't this RE match?

Stephen Hansen apt.shansen at gmail.com
Fri Feb 6 19:34:54 EST 2009


>    In my experience with regular expressions, regex should have found a
> match.  However, in this case regex.match() returns None.  Why is that?
> What am I missing?

You want regex.search(). match specifically looks for the pattern from
the start of the screen, search anywhere.

--S



More information about the Python-list mailing list