Replace text using Macro in MS Word 2019

Copper Contributor

Source Text: "+40 deg C'

Replace + with - only if it is followed by a number. Dont replace if - is followed by a non-number.

Regular expression is required to find the matches.

Please share a Macro for the same.

1 Reply

@chidamla A macro is not necessary as it can be done with a Wildcard replace as shown in the following screen shot

 

Doug_Robbins_Word_MVP_0-1682081571573.png