Microsoft Word Find and Replace Format Codes Reference
Question details
Find a reference for Microsoft Word Find and Replace codes and wildcard searches.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- The user wants to locate or replace special characters and formatting patterns while cleaning up a document.
- Observed behavior
- The desired result is a searchable reference for special-character codes and wildcard expressions.
Open the document in desktop Microsoft Word and select Home > Replace. Expand More to see search options and the Special menu; test a replacement on a copy before applying it throughout the document.
Find special-character codes in Microsoft Word
Use Word's Special menu to insert available codes, or enter common codes directly.
With Use wildcards turned off, common Find what codes include ^p for a paragraph mark, ^t for a tab, ^m for a manual page break, and ^b for a section break.
Other non-wildcard search codes include ^w for white space, ^? for any character, ^# for a digit, and ^$ for a letter. Code availability can differ between Find what and Replace with.
In Word, select Home > Replace, then select More to display the additional search options.
Clear Use wildcards. Click Find what, select Special, and choose a character or break to insert its code. For example, enter ^p to find paragraph marks.
Click Replace with and enter the replacement text, or select Special to see which replacement codes are available. For example, ^t inserts a tab.
Select Find Next and Replace to check individual results before using Replace All.

Search for patterns with Word wildcards
Use wildcards when a fixed special-character code does not describe the text pattern you need.
Edit and search Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Use WPS Writer for everyday text searches and a straightforward transition between office suites; Word-specific codes and wildcard behavior may differ.

Frequently Asked Questions
How do I find paragraph marks in Word?
Select Home > Replace > More, clear Use wildcards, and enter ^p in Find what. If Use wildcards is enabled, enter ^13 instead.
What code finds a tab or a manual page break?
With Use wildcards turned off, enter ^t in Find what for a tab or ^m for a manual page break. You can also select the character from the Special menu.
Can I replace a section break with another section break using ^b?
No. Use ^b in Find what to locate a section break, but it cannot insert a section break in Replace with. Removing a section break can affect formatting.
Where can I see the special codes available in Word?
In desktop Word, select Home > Replace > More, click Find what or Replace with, and open the Special menu. The choices depend on the selected field and search options.
Do Word wildcard expressions work the same way in WPS Writer?
Not necessarily. WPS Writer can find and replace text, but Word-specific codes and wildcard behavior may differ. Check a search on a small selection before applying it to a whole document.




