fork(2) download
  1. import re
  2. import sys
  3.  
  4. print re.split(r"(?<!Abs)(?<!S)\.\s+(?!January|February|March)(?=[A-Z])",
  5. sys.stdin.read())
Success #stdin #stdout 0.09s 10896KB
stdin
First. Second. January. Third. Abs. Forth. S. Fifth.
S. Sixth. ABs. Eighth
stdout
['First', 'Second. January', 'Third', 'Abs. Forth', 'S. Fifth', 'S. Sixth', 'ABs', 'Eighth']