How to Delete Entire Lines in Word Using Find and Replace
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.

- 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.
Always create a backup copy of your document before performing bulk wildcard replacements, as an overly broad search pattern can inadvertently delete unintended text.
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.
Press Ctrl+H on your keyboard to open the Find and Replace dialog box.
Click the More button to expand the advanced search options, then check the box for Use wildcards.
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).
Leave the Replace with field completely empty. This instructs Word to remove both the matched text and the paragraph mark.
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.

Delete Text but Preserve Paragraph Breaks
Use this method if you want to clear the content of the targeted lines but leave the blank space (paragraph break) intact within the document structure.
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. Open Your Document: Launch WPS Writer and open the document you wish to edit.
- 2. Access Find and Replace: Press Ctrl+H to bring up the Find and Replace dialog window.
- 3. Turn on Wildcards: Click the Options button and check the box labeled Use wildcards.
- 4. Replace Content: Enter your specific wildcard search pattern, leave the replace field empty, and click Replace All.

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.




