Document Editing Problems

How to Use Word Wildcards to Add or Remove Square Brackets

Khadija KhanKhadija Khan Oct 26, 2026 868 views

Question details

The user needs to use Find and Replace with wildcards to batch add, remove, or modify square brackets around specific text in a document.

How to Use Word Wildcards to Add or Remove Square Brackets
Product
Word
Device & OS
not provided
Scenario
Editing a large document where formatting requires adding square brackets to certain terms or cleaning up unwanted square brackets without losing the enclosed text.
Observed behavior
Manual bracket addition or removal is tedious and time-consuming. The user wants to automate this process using wildcard expressions in the Find and Replace tool.
Before you start

Before starting, ensure you have the 'Use wildcards' option enabled in the Find and Replace dialog box, as standard searches will not recognize these special regular expressions.

Solution 1Recommended

Remove Square Brackets While Preserving Enclosed Text

Use this wildcard combination to strip the outer square brackets from text while keeping the words inside perfectly intact.

This method utilizes advanced wildcards to capture the text inside the brackets and rewrite it without the brackets. The parentheses in the Find box create a group, which is then referenced in the Replace box.

1
Open Find and Replace

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

2
Enable Wildcards

Click the 'More >>' button to expand the search options, and check the box next to 'Use wildcards'.

3
Enter the Find Expression

In the 'Find what' field, type exactly: \[(?@)\]

4
Enter the Replace Expression

In the 'Replace with' field, type exactly: \1

5
Execute the Replacement

Click 'Replace All' to remove the brackets throughout your document while preserving the text inside.

Remove Square Brackets While Preserving Enclosed Text
Case Sensitivity: When 'Use wildcards' is enabled, the Find and Replace function becomes strictly case-sensitive. Always review your replacements carefully.
Efficient Document Editing

Master Find and Replace with WPS Writer

WPS Writer fully supports advanced Find and Replace features, including powerful wildcard configurations. This allows you to quickly batch-edit brackets, complex formatting, and text with ease.

  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 on your keyboard to bring up the Find and Replace dialog.
  3. 3. Enable Wildcards: Click 'Options' to expand the menu and check the 'Use wildcards' option.
  4. 4. Batch Replace: Enter your wildcard strings and click 'Replace All' to format your brackets instantly.
Fully compatible with Microsoft Word (.docx, .doc) formatsBuilt-in support for advanced wildcard search and replaceLightweight, fast, and features a familiar user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why is Find and Replace not recognizing my wildcards?

You must check the 'Use wildcards' box under the 'More' options in the Find and Replace dialog. If this box is unchecked, Word treats characters like asterisks, question marks, and brackets as literal text rather than special wildcard commands.

Can I use wildcards to add brackets specifically to negative currency amounts?

Yes. For example, to find negative currency amounts and bracket them, you can find '- (£[0-9,.]{1,})' and replace it with '[\1]' using wildcards. Always review the results, as trailing punctuation might sometimes be included.

Are wildcard searches in Word case-sensitive?

Yes, once the 'Use wildcards' option is enabled, the search instantly becomes strictly case-sensitive. If you want to capture both uppercase and lowercase letters, you must use specific ranges in your brackets, such as [A-Za-z].

How do I preserve brackets around numbers but remove them from text?

You can use the wildcard find expression '\[([!£0-9,.]@)\]' and replace it with '\1'. This targets text inside brackets while explicitly ignoring numbers, decimals, and currency symbols.