How to do a "find and replace" with Regex capturing groups.

Copper Contributor

Word in Office 365 on Windows 10 ---

I need to replace all single-line occurrences of

   ABC  ...anything...  DEF

with

   XYZ  ...anything...

where  ...anything...  can be anything other than DEF.   I can easily use a REGEX to do the match but how can I specify whatever ...anything... happens to be in the replacement string?  I know that REGEX supports capturing groups how do I specify them in the replacement string?

Thanks :)

 

0 Replies