WD: Control Codes to Use with Find and Replace (Edit Menu) (95474)



The information in this article applies to:

  • Microsoft Word for Windows 1.0
  • Microsoft Word for Windows 1.1
  • Microsoft Word for Windows 1.1a
  • Microsoft Word for Windows 2.0
  • Microsoft Word for Windows 2.0a
  • Microsoft Word for Windows 2.0b
  • Microsoft Word for Windows 2.0c
  • Microsoft Word for Windows 6.0
  • Microsoft Word for Windows 6.0a
  • Microsoft Word for Windows 6.0c
  • Microsoft Word for Windows 95
  • Microsoft Word for Windows 95 7.0a
  • Microsoft Word for the Macintosh 6.0
  • Microsoft Word for the Macintosh 6.0.1
  • Microsoft Word for the Macintosh 6.0.1a
  • Microsoft Word 98 Macintosh Edition
  • Microsoft Word for Windows NT 6.0

This article was previously published under Q95474

SUMMARY

You can use the following control codes and special characters in Microsoft Word with the Find and Replace commands on the Edit menu (the Search menu in versions 1.x).

MORE INFORMATION

NOTE: The caret character (^) must be typed. The caret is created by pressing SHIFT+6. (Don't confuse this symbol with the CTRL key.)
   Characters    String Matches
   ------------------------------------------------------------------

       ^1         Picture (Except pictures with Float Over Text
                  property, Word 98 Macintosh Edition)
       ^2         Auto-referenced footnotes
       ^3         Word 1.x: Footnote separator
                  all other versions of Word: this control character
                      is not used
       ^5         Annotation mark
       ^9         Tab
       ^10        Word 1.x: Linefeed
                  all other versions of Word: this control character
                  is not used
       ^11        New line
       ^12        Page OR section break
       ^13        Carriage return
       ^14        Column break
       ^19        Opening field brace
                      (when the field braces are visible)
       ^21        Closing field brace
                      (when the field braces are visible)
       ?          Word 1.x: Any single character
                      (not valid in the Replace box)
                  all other versions of Word: Question Mark
       ^?         Word 1.x - Word 2.x: Question mark
                  Word 6.x and later: Any single character
                      (not valid in the Replace box)
       ^-         Optional hyphen
       ^~         Non-breaking hyphen
       ^^         Caret character
       ^#         Word 6.x and later: Any digit
       ^$         Word 6.x and later: Any letter
       ^&         Word 6.x and later: Contents of Find What box
                  (Replace box only)
       ^+         Word 6.x and later: Em Dash (not valid in the Replace
                  box)
       ^=         Word 6.x and later: En Dash (not valid in the Replace
                  box)
       ^u8195     Word 98 Macintosh Edition: Em Space Unicode
                  character value search (not valid in the Replace box)
       ^u8194     Word 98 Macintosh Edition: En Space Unicode
                  character value search (not valid in the Replace box)
       ^a         Word 6.x - Word 7.0: Annotation (not valid in the
                  Replace box)
                  Word 98 Macintosh Edition: Comment (not valid
                  in the Replace box)
       ^b         Word 6.x and later: Section Break (not valid in the
                  Replace box)
       ^c         Replace with Clipboard contents (Replace box only)
       ^d         Word 1.x - 2.x: Section mark
                  Word 6.x and later: Field
       ^e         Word 6.x and later: Endnote Mark (not valid in the
                  Replace box)
       ^f         Word 6.x and later: Footnote Mark (not valid in the
                  Replace box)
       ^g         Word 6.x and later: Graphic
       ^l         New line
       ^m         Word 1.x - 2.x: Duplicates search text (replace only)
                  Word 6.x and later: Manual Page Break
				
       ^n         Word 1.x - Word 2.x: Linefeed (new line)
                  Word 6.x and later: Column break
       ^t         Tab
       ^p         Paragraph mark
       ^s         Non-breaking space
       ^w         White space (space, non-breaking space, tab; not valid
                  in the Replace box)
       ^nnn       Where "n" is an ASCII character number
       ^0nnn      Same as above, but uses ANSI characters (ALT+nnn PC only)
                  (Produces ASCII on Macintosh)
       ^unnnn     Word 98 Macintosh Edition Unicode character
                  search where "n" is a decimal number corresponding to the
                  Unicode character value.
				
NOTE: To search for a specific field, such as an XE (Index Entry) field, use the following syntax:

^19<field name>

When you work with either the Search or Replace command in versions 1.x of Word for Windows, you can use the CTRL key to search or replace the following:
   CTRL+F = Fonts
   CTRL+P = Points
   CTRL+U = Underline
   CTRL+I = Italic
   CTRL+K = Small capitals
   CTRL+W = Underline characters only
   CTRL+D = Double underline
   CTRL+PLUS = Subscript
   SHIFT+CTRL+PLUS = Superscript
   CTRL+L = Left-aligned text
   CTRL+R = Right-aligned text
   CTRL+C = Centered text
   CTRL+J = Justified (all text)
   CTRL+SPACEBAR = Clears above selections
				

REFERENCES

In Word 98 Macintosh Edition, for more information about finding and replacing special characters, on the Help menu click "Contents and Index" next click the Index button and then type:

special characters, finding and replacing

In Word 7.0, for more information about finding and replacing special characters, click the Index tab in Help, and type:

special characters, finding

Double-click the selected topic to go to the "Special characters I can find and replace" topic.

For more information about finding and replacing formatting or special characters in versions 2.0, 2.0a, 2.0a-CD, and 2.0b of Word for Windows, refer to pages 260-266 of the "Microsoft Word for Windows User's Guide."

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:kbhowto KB95474