How to Use Word Wildcards to Add Tabs After Paragraph Numbers
Question details
The user needs to add a tab character immediately following paragraph numbers (including whole numbers, decimals, and multilevel formats) using Find and Replace.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Formatting a clean plain text document containing numbered paragraphs to prepare it for automated style application.
- Observed behavior
- Paragraph numbers are currently followed by spaces instead of tabs, preventing the software from correctly recognizing and treating them as numbered list items.
Before proceeding, ensure you have enabled the 'Use wildcards' option in the Find and Replace dialog box, and save a backup copy of your document in case of unintended replacements.
Use Wildcard Find and Replace
This is the most efficient method to replace spaces with tabs after numerical list items at the start of a paragraph.
Press Ctrl+H on your keyboard to open the Find and Replace dialog box. Click the 'More' button to expand the advanced options.
Check the box next to 'Use wildcards' to allow the use of special search expressions.
In the 'Find what' field, type (^13[0-9][! ^s]@)[ ^s]. This formula searches for a paragraph break followed by a number and a space.
In the 'Replace with' field, type \1^t. This tells the software to keep the original paragraph break and number, but replace the trailing space with a tab character.
Click 'Replace All' to update all matching instances in your document automatically.

Modify Existing Multilevel List Settings
If your numbering is already generated by Word's multilevel list feature but lacks tabs, you should modify the list definition instead of using Find and Replace.
Use a VBA Macro for Complex Formats
For highly complex numbering sequences such as 2.1.1(a)(i), wildcard matching becomes unreliable, and a macro is the best approach.
Format Documents Efficiently with WPS Writer
WPS Writer provides an advanced Find and Replace tool with full wildcard support, allowing you to seamlessly reformat lists and clean up complex text documents.
- 1. Open Your Document: Launch WPS Writer and open the plain text document you need to format.
- 2. Open Find and Replace: Press Ctrl+H, click 'Options', and check 'Use wildcards' to enable advanced searching.
- 3. Input the Formulas: Enter the formula (^13[0-9][! ^s]@)[ ^s] in 'Find what' and \1^t in 'Replace with'.
- 4. Replace Spaces with Tabs: Click 'Replace All' to instantly add tabs after all paragraph numbers in your document.

Frequently Asked Questions
Why doesn't the wildcard find the number on the first line of my document?
The wildcard expression starts with '^13', which specifically looks for a paragraph break before the number. Since the first line of a document does not have a preceding paragraph break, it is skipped. Adding a temporary blank line at the top of your document will solve this.
What does \1^t mean in the wildcard replace field?
The '\1' instructs the software to retain the exact text found inside the first set of parentheses in your Find formula (which is the paragraph mark and the number). The '^t' then inserts a tab character immediately after it, effectively replacing the unwanted space.
Can wildcards handle complex numbering formats like 1.1(a)?
Basic wildcard expressions work well for whole numbers and simple decimals. However, if your document includes mixed formats with multiple brackets and Roman numerals, standard wildcards may misidentify the patterns. In such cases, using a custom VBA macro is much more reliable.




