RegExOptions
Class RegExOptions

Method PrototypeDescription
Function CaseSensitive() As Booleanset whether the match is case sensitive
Sub CaseSensitive(Assigns b As Boolean)get whether the match is case sensitive

Sub Constructor()initialize to default options

Function DotMatchAll() As Booleanget whether dot matches a line break
Sub DotMatchAll(Assigns b As Boolean)set whether the dot matches a line break

Function Greedy() As Booleanget whether matches are made as large as possible
Sub Greedy(Assigns b As Boolean)set whether matches are made as large as possible

Function LineEndType() As Integerget the line type used for "\n" in replacement patterns
Sub LineEndType(Assigns i As Integer)set the line type used for "\n" in replacement patterns

Function MatchEmpty() As Booleanget whether patterns can match the empty string
Sub MatchEmpty(Assigns b As Boolean)set whether patterns can match the empty string

Function ReplaceAllMatches() As Booleanget whether all matches are replaced at once
Sub ReplaceAllMatches(Assigns b As Boolean)set whether all matches are replaced at once

Function StringBeginIsLineBegin() As Booleanget whether the start of the string is considered the start of a line
Sub StringBeginIsLineBegin(Assigns b As Boolean)set whether the start of the string is considered the start of a line

Function StringEndIsLineEnd() As Booleanget whether the end of the string is considered the end of a line
Sub StringEndIsLineEnd(Assigns b As Boolean)set whether the end of the string is considered the end of a line

Function TreatTargetAsOneLine() As Booleanget whether to ignore line breaks in the string when matching '^' and '$'
Sub TreatTargetAsOneLine(Assigns b As Boolean)set whether to ignore line breaks in the string when matching '^' and '$'


This class encapsulates the options that affect the searching or replacement done by a RegEx pattern.

Default values:

CaseSensitive = False
DotMatchAll = False
Greedy = True
LineEndType = 0
MatchEmpty = True
ReplaceAllMatches = False
StringBeginIsLineBegin = True
StringEndIsLineEnd = True
TreatTargetAsOneLine = False