| |
Regular Expression Options
Set of options to change what makes up a valid regular expression. The individual options and their meaning when set are:
Escape In Character Sets - A '\' character within a character set is an escape character;
Character Classes - Character classes are allowed within character sets;
Intervals - Repetition intervals are allowed;
Limited Operations - The characters '+','?', and '|' are ordinary characters rather than operators.
Newline As Alternation Operator - The newline character, '\n', is treated as an alternation operator
Questionmark Plus Not Operators - The characters '+' and '?' are ordinary characters rather than operators. The characters "\+" and "\?" represent the '+' and '?' operators.
BracesNotOperators - The characters '{' and '}' are ordinary characters rather than operators. The characters "\{" and "\}" represent the '{' and '}' operators.
Parentheses Not Operators - The characters '(' and ')' are ordinary characters rather than operators. The characters "\(" and "\)" represent the '(' and ')' operators.
Back References - Back references are allowed.
Vertical bar Not Operator - The character '|' is an ordinary character rather than an operator. The characters "\|" represent the '|' operator.
Literals - All characters are literals and there are no special characters or escape sequences.
Case Insensitive - All characters in the string are matched irregardless of case.
No Locale Specific Collation - Locale specific collation is disabled when dealing with ranges in character sets. The programmer only needs to be concerned about this setting if the Locale property has been used to set a locale other than the standard default one.
Basic - Equivalent to the POSIX basic regular expression syntax: all options are off except CharacterClasses, Intervals, LimitedOperations, BracesNotOperators, ParenthesesNotOperators, and BackReferences.
Extended - Equivalent to the POSIX extended regular expression syntax: all options are off except CharacterClasses, Intervals, and BackReferences.
Normal - The default setting when the object inspector first comes up on a new regular expression component, and represents the way most programmers expect the regular expression syntax should be. All options are off except EscapeInCharacterSets, CharacterClasses, Intervals, BackReferences, and NoLocaleSpecificCollation.
Emacs - Equivalent to the Emacs regular expression syntax: all options are off except BracesNotOperators, ParenthesesNotOperators, VerticalbarNotOperator, and BackReferences.
Awk - Eqivalent to the Awk regular expression syntax: this is equal to the Extended option and EscapeInCharacterSets.
UGrep - Equivalent to the Unix Grep regular expression syntax: this is equal to the Basic option and NewlineAsAlternationOperator.
Egrep - Equivalent to the Egrep regular expression syntax: this is equal to the Extended option and NewlineAsAlternationOperator.
Sed - Equivalent to the Sed regular expression syntax: this is exactly the same as the Basic option.
Perl - Equivalent to the Perl regular expresion syntax: this is exactly the same as the Normal option. This property is only used by the string methods. For the file methods, FindFiles, GrepFiles, and ChangeFiles, the Normal option is always used; however the CaseInsensitive option always matters, whether in the file or string methods.
The type is just an explanation of the way the option operates, whether single or composite. The single type means that adding or deleting this option only affects the particular option. The composite type means that adding or deleting this option, affects all of the options which this option encompasses.
|