How to Find and Remove Empty Paragraphs with Wildcards
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.

- 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.
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.
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.
Press Ctrl+H on your keyboard to open the Find and Replace dialog box.
Click the 'More' button to expand the options, then check the box for 'Use wildcards'.
In the 'Find what' text box, type ^13^13{1,} to search for two or more consecutive paragraph marks.
In the 'Replace with' text box, type ^13 to replace the extra blank lines with a single paragraph mark.
Click 'Replace All'. If necessary, click it again until the tool reports that zero replacements were made.

Use Standard Find and Replace
If you prefer not to use wildcards, you can use the standard paragraph mark symbol to clean up double blank lines.
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. Open Document in WPS Writer: Launch WPS Office and open your .docx or .wps document.
- 2. Access Find and Replace: Press the Ctrl+H shortcut to open the Find and Replace dialog box.
- 3. Enable Wildcards: Click the 'Options' button and check the 'Use wildcards' box.
- 4. Execute Replacement: Type ^13^13{1,} in 'Find what' and ^13 in 'Replace with', then click Replace All.

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.




