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

2008-11-09 Thread james . kirin40
My apologies, given that Google Groups messes up the formatting, the regexp should read regexp = re.compile("""(.*?).*?\s*(?:(.*?))?.*?(?:to ((?: ) +))*.*?.*?\s*.*?""", re.DOTALL) -- http://mail.python.org/mailman/listinfo/python-list

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

2008-11-09 Thread james . kirin40
Hi everyone, I am using Python's re module to extract some data from html. The following code never returns, and I was wondering if someone can explain to me why. Is this a problem with my regexp (I tried really hard to find it?)? The string contains three records (list items in a html page). Not