Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-09-12 14:16
Flavor·PCRE (Legacy)

/
(?<![\.\n]) ?\n(?!\n)
/
gsm
Open regex in editor

Description

Intended as a first pass on already word wrapped text, to remove wrap newlines while preserving likely intentional ones.

Not especially robust.

Submitted by Tristan