fork download
  1. import re
  2. text = "Text... Text. Text! Text? UPPERCASE.UPPERCASE. Name. Text."
  3. print(re.split(r'(?<=[.?!])(?<![A-Z]\.(?=\s+Name))\s+', text))
  4.  
Success #stdin #stdout 0.02s 9552KB
stdin
Standard input is empty
stdout
['Text...', 'Text.', 'Text!', 'Text?', 'UPPERCASE.UPPERCASE. Name.', 'Text.']