Document Editing Problems

How to Find and Remove Empty Paragraphs with Wildcards

Adam DavisAdam Davis Oct 26, 2026 868 views

Question details

The user needs a method to efficiently find and remove unwanted blank lines and empty paragraphs in a document using wildcard search functions.

How to Find and Remove Empty Paragraphs Using Wildcards
Product
Word Processing Software
Device & OS
not provided
Scenario
Cleaning up the formatting of a document that contains excess blank lines scattered throughout the text.
Observed behavior
The document has multiple consecutive paragraph marks that need to be reduced to single paragraphs without deleting actual text.
Before you start

Toggle the 'Show/Hide Editing Marks' feature by pressing Ctrl+* so you can clearly see the paragraph marks (¶) in your document before attempting to remove them.

Solution 1Recommended

Use Wildcard Find and Replace with ^13

Using wildcards allows you to accurately target multiple consecutive empty paragraphs and automatically replace them with a single paragraph break.

When 'Use wildcards' is enabled in the Find and Replace dialog, the standard paragraph mark symbol (^p) does not work. You must use the character code ^13 instead to represent a paragraph break.

1
Open Find and Replace

Press Ctrl+H on your keyboard to open the Find and Replace dialog box.

2
Enable Wildcards

Click the 'More' button to expand the options, then check the box for 'Use wildcards'.

3
Enter the Search Code

In the 'Find what' text box, type ^13^13{1,} to search for two or more consecutive paragraph marks.

4
Enter the Replacement Code

In the 'Replace with' text box, type ^13 to replace the extra blank lines with a single paragraph mark.

5
Execute Replacement

Click 'Replace All'. If necessary, click it again until the tool reports that zero replacements were made.

Use Wildcard Find and Replace with ^13
Exceptions to Wildcard Replacements: Empty paragraphs located immediately before tables, at the end of table cells, or inside content controls may not be removed by this method and will require manual deletion.
Efficient Document Cleanup

Easily Remove Empty Paragraphs in WPS Writer

WPS Writer offers a powerful Find and Replace tool fully equipped with wildcard support, enabling you to clean up formatting and remove excess empty paragraphs in seconds.

  1. 1. Open Document in WPS Writer: Launch WPS Office and open your .docx or .wps document.
  2. 2. Access Find and Replace: Press the Ctrl+H shortcut to open the Find and Replace dialog box.
  3. 3. Enable Wildcards: Click the 'Options' button and check the 'Use wildcards' box.
  4. 4. Execute Replacement: Type ^13^13{1,} in 'Find what' and ^13 in 'Replace with', then click Replace All.
Advanced Find and Replace tool with full wildcard support for complex formatting cleanup.Seamlessly opens, edits, and saves Microsoft Word (.docx) documents with perfect compatibility.Built-in professional word processing tools in an intuitive, easy-to-use interface.Lightweight software that runs quickly and smoothly on both modern and older devices.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Find and Replace remove empty paragraphs inside tables?

Empty paragraphs located at the end of table cells, or the final paragraph mark before an end-of-cell marker, are structurally required by the word processor. These structural marks cannot be targeted globally and must be handled manually.

What does the ^13 code mean in a wildcard search?

In wildcard searches, ^13 represents a paragraph mark (carriage return). You cannot use the standard ^p code when the 'Use wildcards' option is enabled, so ^13 is used instead.

What does the {1,} modifier do in the wildcard search?

The {1,} modifier specifies that the preceding character—in this case, the second paragraph mark—must appear at least one or more consecutive times. This enables the tool to catch clusters of three, four, or more blank lines at once.

Can I remove blank lines without using wildcards?

Yes, you can perform a standard Find and Replace with wildcards disabled by searching for ^p^p and replacing it with ^p. However, you will need to click 'Replace All' multiple times until all double spaces are eliminated.