Why does the same regular expression normally work on sites like pythex.org but all the time it returns an empty list during program execution?
The line I'm trying to parse:
info = u'\nOutage start time:\r\n 3/23/2017 5:11:12 AM\n\nEstimated restoration time:\n\n\n\n\n\nEstimated customers impacted:\r\n1\n\nReason:\r\n An object has made contact with power lines in your area. SRP crews are working to restore power as quickly as possible.\n\nImpacted area:\r\nS SCHNEPF RD to N QUAIL RUN LN and E JUDD RD to W MAGMA RD\n\n' Regular expression: (?<=start time:)(.*?)(?=Estimated)
The result on the site: 3/23/2017 5:11:12 AM 
Result in the interpreter (Python 2.7):
>>> re.findall(r'(?<=start time:)(.*?)(?=Estimated)', info, re.UNICODE) [] >>> re.findall(ur'(?<=start time:)(.*?)(?=Estimated)', info, re.UNICODE) []