TniRegularExpressionMatchFlag Type
Specifiers for the behaviour of a Match.

Unit
niRegularExpression

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:

Combining mfAllMatches with mvOverlapMatches may result in a large number of results.
Combinging mfStartOnly with mfFinishOnly requires that the entire line match the expression.

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


HTML generated by Time2HELP
http://www.time2help.com