A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Finding words consisting only of repeated characters

Thread Tools Display Modes
Old February 28th 20, 12:52 AM
Dave Gaines Dave Gaines is offline
Junior Member
First recorded activity by WordBanter: Feb 2020
Posts: 0
Default Finding words consisting only of repeated characters


I have a technical editing macro that identifies and fixes various glitches in technical reports. I'd like to highlight instances of repeated characters, where authors have entered repeated characters to remind themselves to fill in the specifics later.

For example, "The details are provided in Figure xxx." or "The system weighs yyy lb."

It's typical that authors use xx, yy, or zz, so have already addressed those (see below), but would like to be able to find all instances of words consisting of only repeated characters (aaaa, bbbb, ccc, dddddd, etc) with a single search pattern.

For xs, yx, and zs, I already have the following, highlighting each replacement in yellow:

FindText:="([xX]@)", ReplacementText:="\1"
FindText:="([yY]@)", ReplacementText:="\1"
FindText:="([zZ]@)", ReplacementText:="\1"

Thanks in advance for your help!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way of finding all repeated names in a document? Margot Alnwick Microsoft Word Help 1 May 10th 08 05:53 AM
Finding & Replacing Characters using wildcards Greg Microsoft Word Help 5 October 20th 06 08:51 PM
Finding words that are 34 characters or higher--search expression erik_gregory Microsoft Word Help 1 February 7th 06 12:57 AM
finding special characters New Users 2 June 1st 05 09:51 AM
Repeated words Chris Hale Microsoft Word Help 3 December 27th 04 12:10 PM

All times are GMT +1. The time now is 05:12 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.