[Tutor] Regular expressions question
Brett Ritter
swiftone at swiftone.org
Thu Dec 6 02:30:23 CET 2012
On Wed, Dec 5, 2012 at 5:04 PM, Ed Owens <eowens0124 at gmx.com> wrote:
> >>> m = re.search(':\b(\w+\s+\d+,\s+\d+,\s+\d+:\d+.m\s+\w+)<', str(string))
> >>> print m
> None
> >>>
>
Okay, without the double-quote (it wasn't the colon that I was worried
about, it was the double-quote), I believe the issue now is that you have a
space in the string (after the colon), but \b is a zero-width match.
--
Brett Ritter / SwiftOne
swiftone at swiftone.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121205/bd2a09a3/attachment.html>
More information about the Tutor
mailing list