Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([^\.!\?|\{\}]+[\.!\?]+(?:[a-z]+[\.!\?]+)?)
/
g

Description

Text to sentence is easy, but not when there are URLs or website names inside the text.

Submitted by khpatel4991 - 8 years ago