对不起标题,但愚蠢的东西没有接受任何东西。我正在尝试这样做
Dim myString, myResult
myString = "Hello World! 1234 Hello World! 4321 Hello World! 6789"
Set myRegex = New RegExp
myRegex.Global = true
myRegex.IgnoreCase = true
myRegex.Pattern = "([0-9]+)"
myResult = myRegex.Replace(myString, StrReverse("$1"))
我希望所有数字都反转我希望字符串看起来像这样“Hello World!4321 Hello World!1234 Hello World!9876”但我得到的只是“1$”
谢谢 :-)