Skip to content

Instantly share code, notes, and snippets.

@pjkelly
Forked from anonymous/example.md
Created December 14, 2012 19:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjkelly/4287978 to your computer and use it in GitHub Desktop.
Save pjkelly/4287978 to your computer and use it in GitHub Desktop.
Unwrap text in Sublime Text.

Note: This assumes there are no spaces at the end of lines.

Example Text:

Praesent commodo cursus magna, vel scelerisque nisl
consectetur et. Nulla vitae elit libero, a pharetra
augue. Curabitur blandit tempus porttitor. Maecenas
faucibus mollis interdum. Donec ullamcorper nulla
non metus auctor fringilla. Cras mattis consectetur
purus sit amet fermentum.

Find:

([A-Za-z0-9_.,!"'/$()])\n([A-Za-z0-9_.,!"'/$()])

Replace:

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