Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. (?=(?<!mr).|(?<!mrs).|?|!)+
  2.  
  3. import re
  4.  
  5. pattern = r'(?=(?<!mr).|(?<!mrs).|?|!)+' # I'm assuming this does what you say it does :)
  6. text_block = """long block of sentences"""
  7.  
  8. sentences = re.split(pattern, text_block)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement