Skip to content

Instantly share code, notes, and snippets.

@zlalanne
Created May 31, 2013 15:21
Show Gist options
  • Save zlalanne/5685711 to your computer and use it in GitHub Desktop.
Save zlalanne/5685711 to your computer and use it in GitHub Desktop.
Regex for adding spaces after '.' in long string
text = re.sub(r'\.([a-zA-z])', r'. \1', text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment