Regular Expression (REGEX)
Posted: Sun Jan 29, 2017 3:46 am
Hi all
I need a REGEX parser in my application that will enable user to do FIND using regular expression like applicable in most Search dialog of various text editors.
I google and find the code below in VB and will need interpretation.
'Prepare a regular expression object
Dim myRegExp As RegExp
Dim myMatches As MatchCollection
Dim myMatch As Match
Set myRegExp = New RegExp
myRegExp.IgnoreCase = True
myRegExp.Global = True
myRegExp.Pattern = "regex"
Set myMatches = myRegExp.Execute(subjectString)
For Each myMatch in myMatches
MsgBox(myMatch.Value)
Next
Thanks
Joe
I need a REGEX parser in my application that will enable user to do FIND using regular expression like applicable in most Search dialog of various text editors.
I google and find the code below in VB and will need interpretation.
'Prepare a regular expression object
Dim myRegExp As RegExp
Dim myMatches As MatchCollection
Dim myMatch As Match
Set myRegExp = New RegExp
myRegExp.IgnoreCase = True
myRegExp.Global = True
myRegExp.Pattern = "regex"
Set myMatches = myRegExp.Execute(subjectString)
For Each myMatch in myMatches
MsgBox(myMatch.Value)
Next
Thanks
Joe