why does this call to re.findall() loop forever?

james.kirin40 at gmail.com james.kirin40 at gmail.com
Sun Nov 9 18:03:26 EST 2008


My apologies, given that Google Groups  messes up the formatting, the
regexp should read

regexp = re.compile("""<li class=\"post\".*?<h4 class=\"desc\"><a
href=
\"(.*?)\" rel=\"nofollow\">(.*?)</a>.*?</div>\s*(?:<p class=\"notes
\">(.*?)</p>)?.*?<div class=\"meta\">(?:to ((?:<a class=\"tag\".*?> )
+))*.*?<span class=\"date\" title=\"(.*?)\">.*?</span>\s*</div>.*?</
li>""", re.DOTALL)



More information about the Python-list mailing list