Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
((?:(?(?=Fig\.|\d+\.\d).+?(?=\s)|[^.!?])+(?=\.))+)
/
gi

Description

Match sentences ignore e.g. Fig. z.b. etc

Submitted by anonymous - 11 years ago