logo
search
Document Editing Problems

How to Delete Entire Lines in Word Using Find and Replace

Rana GarciaRana Garcia Oct 10, 2026 869 views

Question details

The user wants to find and delete entire lines of text that begin with specific characters (e.g., 'DELETE') along with their paragraph marks using the Find and Replace feature.

How to Delete Entire Lines in Word Using Find and Replace
Product
Word
Device & OS
not provided
Scenario
Editing a document where multiple lines of variable length starting with a specific word need to be identified and removed simultaneously.
Observed behavior
The user needs to construct a wildcard search pattern that successfully targets variable-length lines starting with a specific word and ending with a paragraph mark to completely delete them.
Before you start

Always create a backup copy of your document before performing bulk wildcard replacements, as an overly broad search pattern can inadvertently delete unintended text.

Solution 1Recommended

Use Wildcard Search to Delete Specific Lines

Utilize Word's wildcard feature to target lines that start with a specific word and end with a paragraph mark, allowing you to delete the entire line and its formatting at once.

By enabling wildcards, you can use regular expressions to match a sequence of characters. To ensure you only delete exactly what you intend, it is crucial to accurately define the character set that appears between your starting word and the paragraph mark.

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 advanced search options, then check the box for Use wildcards.

3
Enter the Search Pattern

In the Find what field, enter your wildcard pattern. For example, to delete lines starting with 'DELETE', type: DELETE [A-Za-z0-9 .,]@^13 (adjusting the prefix and character sets inside the brackets as needed to match your actual text).

4
Clear the Replace Field

Leave the Replace with field completely empty. This instructs Word to remove both the matched text and the paragraph mark.

5
Execute the Replacement

Click Find Next to verify the selection is correct, then click Replace to delete individually, or Replace All to remove all matching lines throughout the document.

Use Wildcard Search to Delete Specific Lines
Understanding the Wildcard Pattern: In the pattern `[A-Za-z0-9 .,]@^13`, the brackets define the allowed characters, `@` specifies one or more occurrences of the previous character or expression, and `^13` represents the standard paragraph mark.
Efficient Document Editing

Quickly Bulk Delete Lines in WPS Writer

WPS Writer provides powerful Find and Replace tools with comprehensive wildcard capabilities, making it incredibly easy to bulk edit documents, format text, and clean up unwanted lines efficiently.

  1. 1. Open Your Document: Launch WPS Writer and open the document you wish to edit.
  2. 2. Access Find and Replace: Press Ctrl+H to bring up the Find and Replace dialog window.
  3. 3. Turn on Wildcards: Click the Options button and check the box labeled Use wildcards.
  4. 4. Replace Content: Enter your specific wildcard search pattern, leave the replace field empty, and click Replace All.
Fully compatible with Microsoft Word document formats (.docx, .doc)Supports advanced wildcard search and replace functions for complex editingLightweight, fast, and completely free to useFamiliar user interface requires no steep learning curve
QA img-9

Frequently Asked Questions

Why is Word deleting more text than I intended when using wildcards?

Wildcards like `@` or `*` can be 'greedy', meaning they will select text across multiple paragraphs if a definitive stopping point isn't set. Ensure your search pattern ends with a strict delimiter, such as the paragraph mark (`^13`), to restrict the search to a single line.

What is the difference between ^p and ^13 in Word's Find and Replace?

When wildcard mode is turned off, `^p` is used to find standard paragraph marks. However, when 'Use wildcards' is checked, `^p` cannot be used in the 'Find what' box; instead, you must use the ANSI character code `^13` to search for paragraph marks.

Can I delete lines ending with a manual line break instead of a paragraph mark?

Yes. A manual line break (inserted by pressing Shift+Enter) is represented by `^l` in regular searches, or by `^11` when using wildcards. Simply replace `^13` with `^11` in your wildcard pattern to target these specific lines.