Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
[^\s.](?:[^?.]|\.(?! ))*\?
/
gm

Description

Finds and selects a question from the beginning of the question (after the last sentence/phrase/page break/etc to the question mark (?)

Submitted by anonymous - 4 years ago