New2
Previous  Next

Initializes a Regex object using the specified pattern and options.
Syntax: New2 (Pattern As String, IgnoreCase As Boolean, Multiline As Boolean)

IgnoreCase - Setting IgnoreCase to True will cause the pattern to be case insensitive.
Multiline - Setting Multiline to True will change the behaviour of ^ and $ signs so they match the beginning and end of each line and not only the whole string.

Example:
Regex1.New2("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$",True,False)