' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Function RegexMatch(pattern As String, expr As String) As Boolean
    Dim re As RegExp
    Dim match As Boolean
    Set re = New RegExp
    re.pattern = pattern
    re.Global = True
    match = re.test(expr)
    Set re = Nothing
    RegexMatch = match
End Function
