From: Ed from AZ on 12 Apr 2010 19:21 I tried a wildcard Find/Replace: -- Find: 5 spaces, any combination of 2 numbers, a period ( {5,})[0-9]{2,}. -- Replace: 9 spaces, then "a." ( {9})a. Find worked. Replace gave me: " {9}a." I gave up trying to code it and just typed 9 spaces! 8>/ Is there something special I needed to do in the Replace box? Ed
From: Doug Robbins - Word MVP on 12 Apr 2010 19:48 You must enter into the Replace box exactly what it is that you want to be used as the replacement Though, you could have used ([ ]{4}) [0-9]{2} in the Find what control and then \1\1 a in the Replace with control -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "Ed from AZ" <prof_ofwhat(a)yahoo.com> wrote in message news:0030c27a-babc-49db-be39-8b7e4824965d(a)z6g2000yqz.googlegroups.com... > I tried a wildcard Find/Replace: > -- Find: 5 spaces, any combination of 2 numbers, a period > ( {5,})[0-9]{2,}. > -- Replace: 9 spaces, then "a." > ( {9})a. > > Find worked. Replace gave me: " {9}a." > > I gave up trying to code it and just typed 9 spaces! 8>/ > Is there something special I needed to do in the Replace box? > > Ed
From: macropod on 12 Apr 2010 20:19 Hi Ed from AZ, You can't use the character count expression in the Replace field - you need to explicitly input the # characters or, as Doug has done, employ a suitable expression from the Find field. -- Cheers macropod [Microsoft MVP - Word] "Ed from AZ" <prof_ofwhat(a)yahoo.com> wrote in message news:0030c27a-babc-49db-be39-8b7e4824965d(a)z6g2000yqz.googlegroups.com... >I tried a wildcard Find/Replace: > -- Find: 5 spaces, any combination of 2 numbers, a period > ( {5,})[0-9]{2,}. > -- Replace: 9 spaces, then "a." > ( {9})a. > > Find worked. Replace gave me: " {9}a." > > I gave up trying to code it and just typed 9 spaces! 8>/ > Is there something special I needed to do in the Replace box? > > Ed
From: Graham Mayor on 13 Apr 2010 00:49 Others have responded to the immediate issue, but see also http://www.gmayor.com/replace_using_wildcards.htm -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Ed from AZ" <prof_ofwhat(a)yahoo.com> wrote in message news:0030c27a-babc-49db-be39-8b7e4824965d(a)z6g2000yqz.googlegroups.com... >I tried a wildcard Find/Replace: > -- Find: 5 spaces, any combination of 2 numbers, a period > ( {5,})[0-9]{2,}. > -- Replace: 9 spaces, then "a." > ( {9})a. > > Find worked. Replace gave me: " {9}a." > > I gave up trying to code it and just typed 9 spaces! 8>/ > Is there something special I needed to do in the Replace box? > > Ed
From: Ed from AZ on 13 Apr 2010 15:02 Thanks, Doug, macropod, and Graham. I've tried to master the wildcard Find - but forgot to spend time on Replace! (Other than the ^13 - ^p gotcha that was explicitly called out.) Cheers! Ed
|
Pages: 1 Prev: "SHOW DESKTOP" icon Next: No one can Open a Word Doc I Post on my Yahoo Group, WHY? |