05 Advanced Find and Replace in Microsoft Word

  • Upload
    onno95

  • View
    227

  • Download
    0

Embed Size (px)

Citation preview

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    1/24

    Advanced Find and Replace in Microsoft Word

    Jack M. Lyon 2002 by the Editorium. All rights reserved.

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    2/24

    ContentsPreface..........................................................3Searching with Codes...................................

    !icrosoft "ord#s $uilt%in Codes..............Searching for S&ecial Characters..............'A(S) Character Codes.............................*

    "hat#s +hat Character,................................-e&lacing with / ind "hat +e1t .................E1am&le4 ormatting (ote (umbers........

    5sing "ildcards..........................................60+he $asics..............................................60"ildcard Combinations..........................66"ildcard anges.....................................63"ildcard 7rou&ing.................................65sing the / ind "hat E1&ression "ildcard 6*

    "ildcards in the eal "orld.......................6E1am&le 6...............................................6E1am&le 2...............................................68E1am&le 3...............................................68

    +wo%Ste& Searching...................................20Ste& 6.....................................................20Ste& 2.....................................................26

    eference....................................................22

    Preface+his document is a com&ilation of articles that originally a&&eared in my email newsletter9

    Editorium Update. !icrosoft "ord#s advanced search features are e1tremely &owerful9 butthey#re also virtually undocumented. !ost e1&lanations of their use have been limited to a sim&ltable of various wildcards. ) wrote these articles to remedy that situation.

    As you read these articles9 you may want to actually try the techni:ues in !icrosoft "ord9using some ;un< documents that you no longer need. =oing so will hel& you learn more than ;usreading the instructions.

    ) ho&e these articles will hel& you understand how useful "ord#s advanced search features can be and how much time they can save you. 5sing these features9 you can :uic

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    3/24

    Searching with Codes"hy should you9 as an editor9 writer9 or &ublisher9 care about something as /technical assearching with codes, $ecause they ma

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    4/24

    Codes You Can Use in theFind What and Replace With Boxes

    Character FindWhat

    ReplaceWith

    Annotation !ar< ?comment @aAny character

    @,Any digit @GAny letter @HCaret character @@ @@Cli&board contents @cColumn brea< @n @nContents of the ind "hat bo1 @IEm dash @D @DEn dash @ @Endnote mar< @e

    ield @dootnote mar<

    @f 7ra&hic @gBine brea< @l @l!anual &age brea< @m @m (onbrea

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    5/24

    And to ma

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    6/24

    translation error. Kdder still9 !icrosoft "ord wonRt let you &aste the character into its ind ande&lace dialog9 so how are you going to get rid of them all, $y hand, Morrors>)f you

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    7/24

    Replacing with #Find What !e$t%)f you#re faced with a com&le1 tas< using !icrosoft "ord#s ind and e&lace feature9 the / ind"hat +e1t re&lacement code may come in handy. or e1am&le9 let#s say you need to add theM+!B italic tags U)V and U )V around anything formatted with italic. ?)f you don#t understandM+!B9 don#t worry. Fou#ll soon see the &oint of this e1am&le. Fou might thin< you#d need amacro to add the tags9 but you don#t. Fou can easily do it li

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    8/24

    !icrosoft "ord has no numbering o&tion that will do this. (evertheless9 there YisY a way to doit9 using / ind "hat +e1t 4

    6. K&en a document containing footnotes ?be sure to

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    9/24

    remember. $eingextremely so&histicated &layers9 we often designated ;o

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    10/24

    Mere#s a list of wildcards for you to &lay with ?on some ;un< te1t\don#t use a real document, inds any single character4 /c,t finds /cat9 /cut9 and /cot.Y inds any string of characters4 / bYd finds /bad9 /bread9 and /bewildered.N inds one of the s&ecified characters4 / bNai t finds /bat and /bit but not /bet.N% inds any single character in the s&ecified range ?which must be in ascending

    order 4/Nl%r ight finds /light9 /might9 /night9 and /right ?and /oight9/&ight9 and /:ight9 if they e1ist .N> inds any single character e1ce&t those s&ecified4 /mN>u st finds /mist and

    /most but not /must. /tN>ou c< finds /tac< and /tic< but not /toc< or /tuc1%Q inds any single character e1ce&t those in the s&ecified range4 /tN>a%m c< finds

    /toc< and /tuc< but not /tac< or /tic

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    11/24

    7Nandh Nandh Nandh Nandh i+hen9 if you#ve &ut the correct s&elling9 /7andhi9 in the / e&lace "ith bo19 you can find

    re&lace each wrong s&elling with the right one in a single &ass9 which is much more efficient tfinding and re&lacing each variation se&arately.

    Fou may be wondering why you couldn#t ;ust use the Y wildcard to re&resent the whole strinof letters9 li

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    12/24

    ?you may need to clic< the /!ore button before this is available 9 we could use this wildcardcombination in the / ind "hat bo14 bNa%e Ntd

    +his tells "ord to find the letter b followed by any letter from a to e ?in other words9 a9 b9 c9 or e followed by t or d. ?+he range must be in ascending order\in other words9 from a /lowerletter Nsuch as a to a /higher letter Nsuch as Q .

    Mere#s another way to a&&roach this4 bN>f%Q Ntd

    (otice the e1clamation mar< at the front of the /range wildcard. +he e1clamation mar< tells"ord to find every character e1ce&t those s&ecified\in this case9 the letters f through Q. +hiswildcard combination9 too9 will find /bat9 /bad9 /bet9 and /bed but not /bit9 /bid9 /budand /but.

    Mere#s a range that ) use all the time4 N0%8 +his little beauty finds any occurrence of a dig"hat#s that good for, Bet#s say you#re editing a document with lots of numbered lists9 li Fou must have /the eye. $ut if youhave several long lists9 you might want to let "ord find these &roblem numbers for you. +o do stry this wildcard string4

    @063N0%8 _N>.Pretty cry&tic. $ut if you#ve been reading so far9 you can &robably figure this out4@063 is the numeric code for a carriage return. ?(ote4 5sing A(S) codes with wildcard

    searches may not wor< on a !acintosh.N0`8 re&resents any digit._ tells "ord to find one or more occurrences of the &revious e1&ression9 if there are

    any ?in this case9 any digit . +his is necessary in case you have lists with two%digit longer numbers.N>. tells "ord to find any character e1ce&t a &eriod.Piece of ca Mere are two other wildcard ranges you might find useful4Na%Q re&resents any occurrence of a lowercase letter.NA% re&resents any occurrence of an u&&ercase letter.emember9 too9 that you can use the N wildcard ?without a hy&hen to s&ecify a whole g

    of characters without using a range. or e1am&le9 this wildcard will find various Fou may be wondering about the bac

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    13/24

    Wildcard $rouping or the &ast few wee So in the / e&lace "ith bo19 we#ll enter this string4 O6@t

    +hat /O6 is an e1am&le of the little%

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    14/24

    Fou#ll notice that we haven#t included a /O2 code9 which would re&lace something withwhatever is found by our second e1&ression9 the s&ace in the &arentheses. Since we haven#tincluded that code9 the s&ace will be re&laced by nothing\in other words9 it will bedeleted during the ind and e&lace. So the relationshi& between the wildcards in the / ind "hat stringand the / e&lace "ith string is something li

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    15/24

    @063?NA%Q _ ?NA%Q _ @063$y now9 you#ll &robably understand these codes and wildcards4@063 re&resents a &aragra&h mar

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    16/24

    All of those ma

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    17/24

    Fou#ll notice that there#s no &eriod after the &. +o fi1 these references9 ) used the followingstring in !icrosoft "ord#s / ind "hat bo1 in the e&lace dialog ?Edit V e&lace 9 with /5se"ild Cards ?or /5se Pattern !atching turned on4 & ?N0%8 _.O

    +hat#s an odd%loo

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    18/24

    )) Corinthians)) ohn)) [ings

    ) wanted them to loo< li

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    19/24

    thousands of s&aces thatdont &recede a su&erscri&t number. )t also has numbers that aren#tsu&erscri&t ?li

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    20/24

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    21/24

    Wildcards, inds any single character4 /c,t finds /cat9 /cut9 and /cot.Y inds any string of characters4 / bYd finds /bad9 /bread9 and /bewildered.N inds one of the s&ecified characters4 / bNai t finds /bat and /bit but not /bet.N% inds any single character in the s&ecified range ?which must be in ascending

    order 4/Nl%r ight finds /light9 /might9 /night9 and /right ?and /oight9/&ight9 and /:ight9 if they e1ist .

    N> inds any single character e1ce&t those s&ecified4 /mN>u st finds /mist and/most but not /must. /tN>ou c< finds /tac< and /tic< but not /toc< or /tuc1%Q inds any single character e1ce&t those in the s&ecified range4 /tN>a%m c< finds

    /toc< and /tuc< but not /tac< or /tic

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    22/24

    Character CodesCharacter Na-e Mac .C

    footnote reference 2 2tab 8 8line brea< 66 66 &age section brea< 62 62 &aragra&h brea< 63 63column brea< 6 6

    % nonbrea

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    23/24

    Character Na-e Mac .Cright chevrons 200 6 -

    one%fourth 6one%half 6 8 6 8three%fourths 680 680

    inverted :uestion 682 686 ca& A9 grave 203 682 ca& A9 acute 236 683 ca& A9 circumfle1 228 68

    ca& A9 tilde 20 68' ca& A9 umlaut 62 68* ca& A9 angstrom 628 68-

    ca& AE9 di&hthong 6- 68 ca& C9 cedilla 630 688 ca& E9 grave 233 200 ca& E9 acute 636 206 ca& E9 circumfle1 230 202

    ca& E9 umlaut 232 203 ca& )9 grave 23- 20 ca& )9 acute 23 20'

    ca& )9 circumfle1 23' 20* ca& )9 umlaut 23* 20- ca& eth 20 ca& (9 tilde 632 208 ca& K9 grave 2 6 260 ca& K9 acute 23 266 ca& K9 circumfle1 238 262 ca& K9 tilde 20' 263 ca& K9 umlaut 633 26

    multi&ly 620 26' ca& K9 slash 6-' 26* ca& 59 grave 2 26- ca& 59 acute 2 2 26

    ca& 59 circumfle1 2 3 268 ca& 59 umlaut 63 220 ca& F9 acute 8 226 ca& thorn 222 shar& s 6*- 223 l c a9 grave 63* 22 l c a9 acute 63' 22' l c a9 circumfle1 63- 22* l c a9 tilde 638 22- l c a9 umlaut 63 22 l c a9 angstrom 6 0 228 l c ae9 di&hthong 680 230 l c c9 cedilla 6 6 236 l c e9 grave 6 3 232 l c e9 acute 6 2 233 l c e9 circumfle1 6 23 l c e9 umlaut 6 ' 23' l c i9 grave 6 - 23* l c i9 acute 6 * 23- l c i9 circumfle1 6 23 l c i9 umlaut 6 8 238 l c eth 2 0 l c n9 tilde 6'0 2 6 l c o9 grave 6'2 2 2 l c o9 acute 6'6 2 3 l c o9 circumfle1 6'3 2 l c o9 tilde 6'' 2 ' l c o9 umlaut 6' 2 * divide 26 2 - l c o9 slash 686 2 l c u9 grave 6'- 2 8

    2

  • 8/10/2019 05 Advanced Find and Replace in Microsoft Word

    24/24

    Character Na-e Mac .C l c u9 acute 6'* 2'0 l c u9 circumfle1 6' 2'6 l c u9 umlaut 6'8 2'2 l c y9 acute 626 2'3

    l c thorn 2' l c y9 umlaut 26* 2''