Page 1 of 1

[Solved] Find duplicate word pattern α β α β

Posted: Sun Oct 20, 2024 4:30 pm
by Antaios
Hi. Is there a way to find duplicate couples of words in OpenOffice Writer? For example: «In the beginning God created God created the heavens and the earth».

Thanks in advance for your kind reply.

Re: Find Duplicate Words

Posted: Sun Oct 20, 2024 5:13 pm
by FJCC
This regular expression works in the case of your example.

Code: Select all

\b(\w+) (\w+)\s+\1 \2\b
Use it as the search term in Find & Replace and make sure regular expressions are selected under More Options.
I'm not sure it will work in every possible case.

Re: Find Duplicate Words

Posted: Sun Oct 20, 2024 5:59 pm
by Antaios
Works great. Thanks a lot.