How to Bold or Change Text Color After a Specific Character in Word
Question details
The user needs a method to automatically apply formatting, such as bold text or a different font color, to all text that appears immediately following a specific character like a comma or tilde.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Editing a large document where specific text segments following delimiters require consistent highlighting or formatting.
- Observed behavior
- Manual formatting is too tedious and time-consuming, requiring an automated solution to apply styles up to the end of a sentence or phrase.
Before proceeding, it is highly recommended to save a copy of your document, as bulk Find and Replace operations with wildcards can accidentally alter unintended parts of your text.
Use Wildcard Find and Replace for Predictable Text Patterns
The Wildcard feature in the Find and Replace dialog allows you to search for text patterns after a specific character and apply formatting automatically without changing the text itself.
This method is best when the text you want to format follows a predictable pattern, such as letters and spaces immediately following a comma. By capturing the text in parentheses, you can retain the original words while applying new styles.
Press Ctrl + H on your keyboard to open the Find and Replace dialog box in Word.
Click the 'More >>' button to expand the options, and check the box for 'Use wildcards'.
In the 'Find what' box, type your target character followed by the wildcard syntax. For example, to find text after a comma, type: ,([A-z ]{1,})
Click into the 'Replace with' box and type ,\1 (which tells Word to replace the text with exactly what it found). Then, click the 'Format' button at the bottom, select 'Font', and choose 'Bold' or select a new font color.
Click 'Replace All' to automatically bold or colorize the text following the specified character throughout your document.

Use a VBA Macro for Complex Sentence Boundaries
If the formatting needs to stop exactly at the end of a sentence, a VBA macro is recommended since Find and Replace struggles to identify sentence ends when periods are used in abbreviations.
Format Text Quickly Using WPS Writer
WPS Writer includes a robust and user-friendly Find and Replace tool with full wildcard support. You can easily automate complex formatting tasks, such as bolding or recoloring specific text patterns, saving you hours of manual editing.
- 1. Open Your Document: Launch WPS Writer and open the document you wish to format.
- 2. Access Find and Replace: Press Ctrl + H to bring up the Replace dialog box.
- 3. Configure Wildcard Search: Check 'Use wildcards'. Enter your search string (e.g., `,([A-z ]{1,})`) in 'Find what' and `,\1` in 'Replace with'.
- 4. Apply Formatting: Click 'Format' > 'Font' to specify your desired bold or color styling, then click 'Replace All'.

Frequently Asked Questions
Why isn't my Wildcard Find and Replace applying the formatting?
Ensure that your cursor is actively placed inside the 'Replace with' box before you click the 'Format' button. If your cursor is in the 'Find what' box, Word will search for text that is already bold or colored instead of applying the new format.
Can I format text between two specific characters using wildcards?
Yes. You can use wildcards to target text enclosed by specific characters. For instance, to find text between brackets, type \[*\] in the 'Find what' box. In 'Replace with', use ^& to represent the found text, and apply your desired formatting.
Is there a way to quickly undo a bulk replacement if it formats the wrong text?
Yes. Immediately after executing the 'Replace All' command, you can press Ctrl + Z. This will undo the entire batch replacement in a single action, reverting your document back to its previous state.




