The value selected for Operation determines what type of string comparison to perform.
Select a predefined Operation from the Operation list:
Equals - Case Sensitive
Select this value to perform a case sensitive equality comparison. This returns the results of source.equals(compareText) where both source and compareText are first resolved. Equals - Case Insensitive Select this value to perform a case insensitive equality comparison. This returns the results of source.equalsIgnoreCase(compareText) where both source and compareText are first resolved. GNU Regular Expression Select this value to perform a comparison based on GNU regular expression syntax. This returns the result of com.installshield.util.rex.Rex.matches(source, compareText) where both source and compareText are first resolved. |
The regular expressions that are supported are a subset of lex, plus some extensions. Some characters must be negated using a backslash ("\") in order for Java to ignore:
Expression | Description |
x | The character x. |
"x" | An x, even if x is an operator. |
\x | An x, even if x is an operator. |
[xy] | The character x or y. |
[x-z] | The character x, y, or z. |
[^x] | Any character but x. |
. | Any character but newline. |
^x | An x at the beginning of a line. |
x$ | An x at the end of a line. |
x? | An optional x. |
x* | Zero or more instances of x. |
x+ | One or more instance of x. |
x\|y | An x or a y. |
\(x\) | An x matched as a sub-expression. |
x{m,n} | M through n occurrences of x. |
\n | A back reference, where n is a digit 0 through 9. |
Example | |
\(.*"."ini\)\|\(.*"."bat\) | Searches for all files that end with ".ini" or ".bat". |