RegExOptions
From Xojo Documentation
Class (inherits from Object)
Used to specify options when doing a search using regular expressions.
Properties | |||||||||
|
Example
Normally, RegEx searches are case insensitive. This example does a case-sensitive search using by supplying the a RegExOptions instance with CaseSensitive = True:
Var re As New RegEx
Var match As RegExMatch
Var ro As New RegExOptions
ro.CaseSensitive = True
re.Options = ro
re.SearchPattern = "software"
match = re.Search("How much software can a Software Developer make?")
Var result As String
Do
If match <> Nil Then
result = match.SubExpressionString(0)
MessageBox(result)
End If
match = re.Search
Loop Until match Is Nil
Var match As RegExMatch
Var ro As New RegExOptions
ro.CaseSensitive = True
re.Options = ro
re.SearchPattern = "software"
match = re.Search("How much software can a Software Developer make?")
Var result As String
Do
If match <> Nil Then
result = match.SubExpressionString(0)
MessageBox(result)
End If
match = re.Search
Loop Until match Is Nil
See Also
RegEx, RegExMatch classes.