fork download
  1.  
  2. # -*- coding: utf-8 -*-
  3. import re
  4. 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'
  5. print([x.encode('utf8') for x in re.findall(ur'start time:\s*(.*?)\s*Estimated', info)])
Success #stdin #stdout 0.01s 23304KB
stdin
Standard input is empty
stdout
['3/23/2017 5:11:12 AM']