logo
search
Document Editing Problems

How to Use Word Wildcards to Add Tabs After Paragraph Numbers

Maira MehtabMaira Mehtab Sep 27, 2026 871 views

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.

How to Use Word Wildcards to Add Tabs After Paragraph Numbers
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 you start

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.

Solution 1Recommended

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.

1
Open Find and Replace

Press Ctrl+H on your keyboard to open the Find and Replace dialog box. Click the 'More' button to expand the advanced options.

2
Enable Wildcards

Check the box next to 'Use wildcards' to allow the use of special search expressions.

3
Enter the Find Expression

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.

4
Enter the Replace Expression

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.

5
Execute Replacement

Click 'Replace All' to update all matching instances in your document automatically.

Use Wildcard Find and Replace
First Line Exception: Because the formula relies on finding a paragraph break (^13), it will not modify the very first line of your document. You can add a temporary blank line at the top before running the replacement.

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. 1. Open Your Document: Launch WPS Writer and open the plain text document you need to format.
  2. 2. Open Find and Replace: Press Ctrl+H, click 'Options', and check 'Use wildcards' to enable advanced searching.
  3. 3. Input the Formulas: Enter the formula (^13[0-9][! ^s]@)[ ^s] in 'Find what' and \1^t in 'Replace with'.
  4. 4. Replace Spaces with Tabs: Click 'Replace All' to instantly add tabs after all paragraph numbers in your document.
Advanced Find and Replace with comprehensive wildcard support.Excellent format compatibility with Microsoft Word (.docx) files.Intuitive Multilevel List settings for easy document structuring.Free, lightweight, and fast document editing experience.
microsoft office alternative - wps office

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.