I would like to use a Regex search to find the following: can anyone help me?

Forwarded this from Scriv’s lower deck … can anybody help Sarah? :confused:


You’re asking for a rather complicated pair of regex’s. :slight_smile:

You may say a “sentence” and have in mind a bunch of words terminated with a period but then how does this fit in?

So, unless you want to some mildly demented person to really figure out how to do these, take the sloppy road.

These seem to mostly work when run against the first chapter of Wuthering Heights.

Sentences longer than 25 words:

This roughly means: find at least 24 words that may have apostrophes in them that are followed by one to three characters that aren’t word characters nor are they sentence terminations, followed by one word that is followed by a period or an exclamation mark or a question mark. Modify as you like but be very careful—complex regexs like this can blow-up easily.

Paragraphs longer than 4 sentences:


Find paragraphs with at least 5 spans of characters with a period, question mark or exclamation point marking them.

Happy hair-pulling.


Hi Dave,
Thanks - I’m using them for academic writing. I’ll have a play and let you know how I go.