Document Editing Problems

How to Remove Characters Around a Colon or Semicolon in Word

Rana GarciaRana Garcia Oct 29, 2026 868 views

Question details

The user wants to remove a colon or semicolon along with one adjacent character on each side using the Find and Replace function, without turning on the wildcard mode.

How to Remove Characters Around a Colon or Semicolon in Word
Product
Word Processor
Device & OS
not provided
Scenario
Cleaning up specific text formatting or punctuation errors where adjacent characters around certain punctuation marks need to be deleted in bulk.
Observed behavior
Requires a specific search code in Find and Replace to target exact characters before and after a punctuation mark so they can be replaced with nothing.
Before you start

Before making bulk changes to your document, save a copy or remember that you can use the 'Undo' function (Ctrl+Z) in case the Find and Replace operation alters unintended text.

Solution 1Recommended

Use the 'Any Character' Code in Find and Replace

Utilize the built-in special character code ^? to represent any single character without needing to activate wildcard mode.

In standard Find and Replace mode (without wildcards enabled), the ^? code represents 'any single character'. By placing it on both sides of your target punctuation, you can quickly isolate and delete the exact sequence.

1
Open Find and Replace

Press the keyboard shortcut 'Ctrl + H' to open the Find and Replace dialog box.

2
Enter the Search Pattern

In the 'Find what' field, type ^?:^? to target a colon and one character on each side, or type ^?;^? if you are targeting a semicolon.

3
Clear the Replace Field

Leave the 'Replace with' field completely blank. This tells the program to delete the found text rather than swapping it with new text.

4
Execute the Replacement

Click 'Replace All' to instantly remove all matching instances throughout your entire document.

Use the 'Any Character' Code in Find and Replace
Adjusting for Multiple Characters: If you need to remove two characters on each side, simply type ^?^?:^?^? in the 'Find what' box. You can stack as many ^? codes as you need.
Efficient Document Editing

Use WPS Writer for Advanced Text Replacement

WPS Writer offers a robust and highly intuitive Find and Replace tool that perfectly supports special characters and advanced formatting searches, allowing you to clean up massive documents in seconds.

  1. 1. Open your Document: Launch WPS Writer and open the document you wish to edit.
  2. 2. Access Find and Replace: Go to the 'Home' tab and click on 'Find and Replace', or simply press 'Ctrl + H'.
  3. 3. Input the Special Characters: Enter your special character pattern (such as ^?;^?) in the search box, leave the replace box empty, and click 'Replace All'.
Easily execute complex text replacements with special formatting codes.Fully compatible with Microsoft Word document formats (.docx).Lightweight application with a clean, user-friendly interface.Free to use with comprehensive document editing features.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use this method to remove characters around other punctuation marks?

Yes, you can substitute the colon or semicolon in the ^?:^? pattern with any other punctuation mark or letter. For example, use ^?-^? for a hyphen or ^?,^? for a comma.

What if I only want to remove the character before the colon?

To remove just the preceding character, type ^?: in the 'Find what' box, and simply type a colon (:) in the 'Replace with' box. This deletes the preceding character but puts the colon back.

Does the ^? code match empty spaces?

Yes, the ^? code considers a blank space as a character. It will match and remove spaces if they are positioned directly next to your specified punctuation mark.

Why is my Find and Replace not working with the ^? code?

Make sure that the 'Use wildcards' option is disabled in your Find and Replace settings (click 'More' to check). If wildcards are enabled, the ^? code behaves differently, and you would need to use a standard question mark (?) instead.