Skip to content

Instantly share code, notes, and snippets.

@egardner
Created August 28, 2014 14:58
Show Gist options
  • Save egardner/3b72d307a8d9c0102cbf to your computer and use it in GitHub Desktop.
Save egardner/3b72d307a8d9c0102cbf to your computer and use it in GitHub Desktop.
Example regex to separate out sentences in a string
# Regex code to separate sentences out of strings
/(\S.+?[.!?:])(?=\s+|$)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment