View Single Post
 
Old 04-10-2013, 05:34 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote