Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4287951 to your computer and use it in GitHub Desktop.
Save anonymous/4287951 to your computer and use it in GitHub Desktop.
Reformat wrapped text in Sublime Text

This assumes there are no spaces at the end of lines. This regex doesn't cover all character possibilities, but got me close to where I needed to be.

Find:

([A-Z]|[a-z]|\.|,|\))\n([A-Z]|[a-z]|\.|,|\))

Replace:

$1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment