You may want to customize RegExpr.Bas to suit your needs. The (declarations) section includes a few options to set.
There are a few compiler constants that can be used to customize RegExpr.Bas.
#Const ExtendedCharacters = True ' If ExtendedCharacters is True, \w matches [A-Za-z0-9_] and Chr(128)-Chr(255) ' If it's False, \w matches [A-Za-z0-9_] (standard Perl) #Const HandleErrors = True ' If HandleErrors is True, errors will cause a an error message to be shown ' If it's False, error handling is done by the caller #Const DetailedErrorMessages = True ' If DetailedErrorMessages is True, error messages will include the module and function where the error happened ' If it's False, only a message will be given
Const NewLine = vbCrLf ' You can set NewLine to vbCr, vbLf, or vbCrLf (the default) ' This is what \n should match