- Daniel Vivier
- PowerBuilder
- Thursday, 8 December 2022 09:51 PM UTC
I just wanted to share something I created. I have been using the venerable PBREGEXP from https://www.nika-soft.com/download/ for regular expression replacements etc., but yesterday I hit a bad bug in one use of it (I was trying to remove a large section of an HTML file, starting with and ending with , and it crashed my program!).
Although you get source code with it, I really had no interest in trying to understand the code enough to fix that, so I looked for other options.
I found a post suggesting using the COM object VBScript.RegExp, which turns out to work great and have strong features. I wrote an NVO wrapper for it, nvo_regexp.sru, which I am including in my Zip file attachment. The of_test function demonstrates how to use some of it.
I have also included the Windows Scripting Host HTML help file (script56.chm) in the attachment, which I do not know where to find anymore, which has fairly thorough documentation for the RegExp control.
Of course it would be great if PowerScript included stronger RegExp functionality, beyond just Match!
- Dan Cooperstock (sorry, after an ownership change of my business, this account comes up with a different name!)
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.