Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-05-30 18:50
Flavor·PCRE (Legacy)

/
([^\.!?…\n]*[\.!?…])?((?:[^\.!?…]*[\.!?…])*?)([^\.!?…\n]*)\n
/
Open regex in editor

Description

Splits a line into three parts: completed sentences from the previous line, any complete sentences, and any uncompleted sentences.

Submitted by E.Gu