Find sentences with specific words, repeated

Hi does anyone know please, if it’s possible to find all sentences with specific words which are repeated more than once?

To say find, all sentences with ‘and’ in 3 times.

Thank you for reading this…

Can you clarify:

Do you mean, for example, “cat and horse and rat and dog” or

“cat and and and dog” ?

Hi BigRAl, yes the first one.

“Cat and horse and rat and dog”/ and similar

Find (and ).*?(and ).*?(and ) where and(space) is the word to be searched. Check Regular expressions.

See LibreOffice Help on Find & Replace and ICU Documentation on Regular Expressions.

Tested with LibreOffice (x86); OS: Windows 6.1.

Add Answer is reserved for solutions. If you think the answer is not satisfactory, add a comment below, or click edit (below your question) to add more information. Thanks.

Check the mark (Answer markCorrect answer mark) to the left of the answer that solves your question.

Wow I never thought!

You sir are a genius!

LeroyG. Thank you…

I’m not a genius, just learning. :slight_smile:

You’re welcome!

Also can find (and ).*?\1.*?\1, where \1 is equivalent to the content of the first parentheses, i.e., and(space).