Microsoft KB Archive/95474

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

Article ID: 95474

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 6.0 for Macintosh
 * Microsoft Word 6.01 for Macintosh
 * Microsoft Word 6.01 for Macintosh
 * Microsoft Word 98 for Macintosh
 * Microsoft Word 6.0 Standard Edition

-



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 &quot;n&quot; 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 &quot;n&quot; 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

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

