Litigation Support Tip of the Night - Searching for and Highlighting Regex Strings in Word

Litigation Support Tip of the Night - Searching for and Highlighting Regex Strings in Word

Find a 1,001 tips (and counting) on my site, Litigation Support Tip of the Night. A new tip is posted each night.

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})

No alt text provided for this image

 

 . . . 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'.  

 

No alt text provided for this image

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

https://www.litigationsupporttipofthenight.com/single-post/2019/07/15/Searching-for-and-Highlighting-Regex-Strings


The views expressed in these posts are those of the owner and do not reflect the views or opinions of the owner’s employer. All content provided on this page is for informational purposes only. The owner makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information. This policy is subject to change at any time. The owner is not an attorney, and nothing posted on this site should be construed as legal advice. Litigation Support Tip of the Night does not provide confirmation that any e-discovery technique or conduct is compliant with legal, regulatory, contractual or ethical requirements.  

To view or add a comment, sign in

Insights from the community

Explore topics