TniRegularExpressionMatchFlag Type |
Declaration
TniRegularExpressionMatchFlag = ( mfStartOnly, mfFinishOnly, mfCaseInsensitive, mfLongMatches, mfShortMatches, mfMultipleMatches, mfOverlapMatches);
Description
These specifiers are used to configure the Matcher for the type of matches desired. Note that lack of a flag implies the reverse state ie a match is case insensitive unless mfCaseSensitive is specified.
Some useful combinations:
mfStartOnly can be specified by begining the Regular Expression with '^'
mfFinishOnly can be specified by ending the Regular Expression with '$'
Values |
mfStartOnly | Only match at the start of the string (default is to find a match anywhere) |
mfFinishOnly | Match must terminate at the end of the string (default is to permit a match finishing anywhere) |
mfCaseSensitive | Matches don't depend on case (default case is case sensitive) |
mfLongMatches | Discard short matches in favour of longer matches |
mfShortMatches | Discard long matches in favour of short matches |
mfMultipleMatches | Find all possible matches, not just the first |
mfOverlapMatches | Find overlapping matches |
Category
GettingStarted
|