As I don't know what your Excel construction "(()())" is supposed to represent, I can't really say what the equivalent might be in Word, or whether it's even possible. Word can certainly use a wildcard expression like Find = (A)(B) Replace = \2\1, but you can't use a wildcard expression like Find = ((A)(B)C).
Even so, anything you can do with RegEx code in Excel you can do with the same RegEx code in Word. The RegExp Object is accessed in Word the same as it is in Excel, via either Early or Late Binding. Early Binding requires setting a VBA reference from the Visual Basic Editor via Tools>References>Microsoft VBScript Regular Expression 5.5.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|