Searching for and Highlighting Regex Strings
top of page

Searching for and Highlighting Regex Strings


Don't miss that you can run regular expression searches in Word, and then highlight the results. In Find and Replace, check off the 'Use wildcards' box and enter the searched for term in parentheses. In this example, we're searching for eight-digit numbers using this Regex pattern:

([0-9]{8})

. . . since we're only using one Regex term, to replace with the searched for term we only enter a '\' followed by a '1'. If there was a second term we would enter '\2'.

This works in both MS Word 2016 and MS Word 2010.


bottom of page