[Solved] Find duplicate word pattern α β α β

Discuss the word processor
Locked
Antaios
Posts: 2
Joined: Sun Oct 20, 2024 4:23 pm

[Solved] Find duplicate word pattern α β α β

Post 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.
Last edited by MrProgrammer on Sun Oct 20, 2024 9:14 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 4.1.2. on Windows XP
FJCC
Moderator
Posts: 9625
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Find Duplicate Words

Post 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.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Antaios
Posts: 2
Joined: Sun Oct 20, 2024 4:23 pm

Re: Find Duplicate Words

Post by Antaios »

Works great. Thanks a lot.
OpenOffice 4.1.2. on Windows XP
Locked