Customizing RegExpr

Back to help contents

You may want to customize RegExpr.Bas to suit your needs. The (declarations) section includes a few options to set.

Compiler constants

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

Conventional constant

Const NewLine = vbCrLf
' You can set NewLine to vbCr, vbLf, or vbCrLf (the default)
' This is what \n should match

©Aivosto Oy