Last active
December 31, 2015 22:09
-
-
Save slimane/8052059 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function REGMATCH(target As String, pattern As String, Optional g As Boolean = False, Optional ignoreCase As Boolean = False, Optional multiLine As Boolean = False) As Boolean | |
If Len(pattern) = 0 Then | |
REGMATCH = False | |
Exit Function | |
End If | |
Dim r As New RegExp | |
With r | |
.multiLine = multiLine | |
.Global = g | |
.ignoreCase = ignoreCase | |
.pattern = pattern | |
End With | |
REGMATCH = r.Test(target) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment