About the Bug in VBScript.RegExp #166
Replies: 12 comments 22 replies
-
|
Conditions for the occurrence of a VBScript.RegExp.Replace bug The SelenumVBA program is referenced by "Dim oRegExp As New VBScript_RegExp_55.RegExp" |
Beta Was this translation helpful? Give feedback.
-
|
It's added The SelenumVBA program does not use them,so I don't think there will be any errors |
Beta Was this translation helpful? Give feedback.
-
|
The Replace bug has been resolved in Office Version2508 Build16.0.19127.20192. |
Beta Was this translation helpful? Give feedback.
-
|
The series of bugs seems to have been affected by the change to Regex to be able to be handled in VBE. |
Beta Was this translation helpful? Give feedback.
-
|
Oh wow - that's big news that RegExp is now part of VBA7 without reference! |
Beta Was this translation helpful? Give feedback.
-
|
In my projects, I would use the following version as a workaround to fix both the Replace and the lookahead bugs, which likely works on both old and new Excel versions: (tested with the new Excel) In SeleniumVBA, which does not use lookaheads, we could just remove all the "VBScript_RegExp_55." occurrences in the code to just make it future-proof. |
Beta Was this translation helpful? Give feedback.
-
|
A person who appears to be a Microsoft developer posted on StackOverFlow. Sorry for the inconvenience, we are working on it. |
Beta Was this translation helpful? Give feedback.
-
|
In order for SeleniumVBA to work on older versions of Excel/Access, I think we need to do the following for now and can reassess in Phase 2/3 of the deprecation plan. Anyone have a different or better idea? Sub testSolution()
Dim re As Object
Set re = GetObject("", "VBScript.RegExp")
re.Pattern = "-+"
Debug.Assert re.test("----")
End Sub |
Beta Was this translation helpful? Give feedback.
-
|
On my computer, GetObject for RegExp is not available. The excel file is attached at the repo: |
Beta Was this translation helpful? Give feedback.
-
|
But what happens if you use |
Beta Was this translation helpful? Give feedback.
-
|
So on your system, |
Beta Was this translation helpful? Give feedback.
-
|
Today I got a new Office update, all RegExp errors are fixed. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
In the Office update (ver.2508) at the end of August, there has been an example of a code using VBScript.RegExp.Replace suddenly encountering an error.
Please be careful.
https://nolongerset.com/bug-assertion-failed-regexp/
Beta Was this translation helpful? Give feedback.
All reactions