A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Dim reg As Object
Set reg = CreateObject("vbscript.regexp")
With reg
.Pattern = "^\s*(\d{4}(?:\.\d{2}(?:\.\d{2})?)?)(.+?)((?:[,0-9]*\d\.\d{2})|(?:\([,0-9]*\d\.\d{2}\)))\s*$"
.ignorecase = True
End With
But the Regexpreplace function is not getting enabled in the excel when I enter equal (=) on a cell.
I am afraid this is a lib for VBA rather than Excel formula.
if you want to use formular,you can try
e.g.
=WEBSERVICE("http://e.anyoupin.cn/eh3/?regreplace~[^A-Z]~~" & A2)
note:
=WEBSERVICE("http://e.anyoupin.cn/eh3/?regreplace~your pattern~replacement~" & your string sddress)