Replies: 2 comments 4 replies
-
Hi guys, I just AI-coded a zero-dependencies .NET's regular expression engine wrapper for VBA. I compared its speed versus VBScript.RegExp with interesting results: --- Test 17: Performance Comparison --- --- Performance Summary for 1 iterations --- Relative Speeds (lower is better, 1.00x is fastest): --- Test 17: Performance Comparison --- --- Performance Summary for 100 iterations --- Relative Speeds (lower is better, 1.00x is fastest): Notes:
|
Beta Was this translation helpful? Give feedback.
-
Woah - I'll check it out @6DiegoDiego9!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A continuation of the Discussion started by @hanamichi77777 here...
Given the interest expressed in above, as well as here, I have somewhat formalized the VBS RegExp drop-in replacement wrapper that I wrote for the SeleniumVBA twinBASIC DLL. That class wrapper was intended as an experiment to test @sihlfall's pure VBA vba-regex, which works in my usage cases. Thus far, @sihlfall has been responsive to issue reports and enhancement requests, so it seems like this might be a feasible path for replacing VBS's RegExp if that library is retired by MS in the future.
My RegExp class attempts to maintains backwards compatibility with VBScript's version, as well as extends the functionality to leverage some of StaticRegex's enhanced features, such as named capture groups, and the Split Method.
I'll continue to test/use my RegExp replacement class with @sihlfall's StaticRegex.bas standalone module in the twinBASIC DLL and in other code bases that I maintain. If anyone else (@hanamichi77777?) wishes to use the same in VBA, then I will maintain an updated version in, for lack of a better place, my vba-regex fork here:
https://github.com/GCuser99/vba-regex/tree/master/vbs_regexp/VBA
https://github.com/GCuser99/vba-regex/tree/master/vbs_regexp/twinBASIC
Please obtain the latest all-in-one version of @sihlfall's StaticRegex.bas by running the PowerShell script found here:
https://github.com/sihlfall/vba-regex/blob/master/aio/make_aio.ps1
In order for that to work with the RegExp class, rename the module from "StaticRegexSingle" to "StaticRegex". Hopefully in the future, @sihlfall will make it easier to obtain a copy of the latest all-in-one module.
Cheers,
Mike
Beta Was this translation helpful? Give feedback.
All reactions