Why no match?
Robin Becker
robin at jessikat.fsnet.co.uk
Mon Dec 17 19:34:17 EST 2001
In article <mailman.1008629541.21816.python-list at python.org>, Skip
Montanaro <skip at pobox.com> writes
>
> Robin> my own stupidity the patter should be
> Robin> re.compile(r'^self\s*\.\s*test\s*=\s*\d+\s*$').match('self.test=11')
>
>Also, if you're using the match method there's no need to include "^" at the
>start. (Are there siutations where it makes a difference?)
>
perhaps perhaps
--
Robin Becker
More information about the Python-list
mailing list