On 12/5/12 7:24 PM, Brett Ritter wrote:
On Wed, Dec 5, 2012 at 4:13 PM, Ed Owens <eowens0...@gmx.com
<mailto:eowens0...@gmx.com>> wrote:
>>> str(string)
'[<div class="wx-timestamp">\n<div class="wx-subtitle
wx-timestamp">Updated: Dec 5, 2012, 5:08pm EST</div>\n</div>]'
>>> m = re.search('":\b(\w+\s+\d+,\s+\d+,\s+\d+:\d+.m\s+\w+)<',
str(string))
>>> print m
None
It starts with ":
which doesn't appear in your string.
the : is at the end of 'Updated: ', I think. That did make me think
about the " in the regular expression above, which I didn't remember.
Just for completeness, here it is again, as copied:
>>> m = re.search(':\b(\w+\s+\d+,\s+\d+,\s+\d+:\d+.m\s+\w+)<', str(string))
>>> print m
None
>>>
Ed
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor