Find and highlight long sentences

This regex:

(\w+\s+){19,}?(\w+[\.|?]) {NB: edited to correct formatting gremlin attack.}

should either work or get you close :blush: . It assumes that every “sentence” terminates with either a period or a question mark.

(\w+\s+) — any number of word characters followed by any number of space characters
{19,}? — repeat the previous group (it’s in parenthesis) 19 times or more, where “more” is “as many as possible”
(\w+[\.|?]) — any number of word characters followed by either a period or a question mark. “|” is the pipe character (shift\ on most keyboards). Note the period before the pipe.

Test before using.