Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(([A-Z][a-z]*(\s))([a-z]*(\s))*([a-z]+)[.])*(?!([A-z0-9]*(\s)))
/

Description

This regex will pick sentences.

Submitted by noby nirmal - 9 years ago