Regular Expressions 101

Community Patterns

Split sentences in a text

0

Regular Expression
ECMAScript (JavaScript)

/
[\S]+?[[\S\s]+?(?:[\.?!])
/
gm

Description

Split sentences in a text. Can be used to build text manager apps.

Submitted by Danilo Celestino de Castro - 7 years ago