fork download
  1. import re
  2. arr = ["There was an error while trying to serialize parameter http://u...content-available-to-author-only...i.org/:Message. The InnerException message with data contract name 'enumStatus:' is not expected.", "ORA-01756: quoted string not properly terminated ORA-06512: at module1, line 48 ORA-06512: at line 1"]
  3.  
  4. rx = re.compile(r'\s+(?=\bORA-\d+)|(?<=\.)\s+(?=[A-Z])')
  5. for i in arr: print (rx.split(i))
  6.  
Success #stdin #stdout 0.04s 9300KB
stdin
Standard input is empty
stdout
['There was an error while trying to serialize parameter http://u...content-available-to-author-only...i.org/:Message.', "The InnerException message with data contract name 'enumStatus:' is not expected."]
['ORA-01756: quoted string not properly terminated', 'ORA-06512: at module1, line 48', 'ORA-06512: at line 1']