Filter Wildcards
When filtering an Alarms List or Alarm Banner by Source, you can include wildcard characters in the filter criteria. Wildcard characters allow a single character to match any of one or more unspecified characters. The Sources filter on the Alarms List or Alarm Banner’s Filter window supports these wildcard characters:
- ? (question mark) matches a single character.
Example:
N? Region.Water Level
will match Sources such as NE Region.Water Level and NW Region.Water Level - * (asterisk) matches any number of characters.
Example:
*Pager*
will match any Sources that include the string ‘Pager’. - # (hash) matches any single digit (0 to 9).
Example:
Zone #.Sensor #
will match Sources such as Zone 1.Sensor 2, Zone 1. Sensor 3, and Zone 2.Sensor 4. - [ ] a case-sensitive list, enclosed in square brackets. A Source is included if it starts with any one of the characters or digits that are specified in the list.
Example:
[abc]*
will match any Sources that start with the lowercase letters a, b, or c. It will not match any Sources that start with uppercase A, B, or C.[a,b,c]*
will match any Sources that start with a lower-case comma or the lowercase letters a, b, or c. This is because the comma is recognized as a valid character in the same way as a letter. Again, it will not match any Sources that start with an uppercase comma, A, B or C.[a-f]*
will match any Sources that start with a lowercase letter in the range a to f inclusive[f-a]*
will match any Sources that start with a lowercase letter f or a. Ranges are only recognized if the characters are defined in alphabetical order. As the first character defined is f and this comes after a in the alphabet, there is not a valid range.[A-FM-PST]*
will match any Sources that start with an uppercase letter in the ranges A to F, or M to P, or either uppercase S or uppercase T. - [!] a case-sensitive list, enclosed in square brackets, with the first entry prefixed with an exclamation mark. A Source is excluded if it starts with any one of the characters or digits that are specified in the list.
Example:
[!abc]*
will exclude any Sources that start with the lowercase letters a, b, or c. It will not exclude Sources that begin with uppercase A, B or C.
Further Information
Pre-filter alarms by Alarm Source using the Alarm Filter String: see Specify a Default Alarm Filter.
(The filter wildcards that are supported by Lists other than the Alarms List differ to the above—for information, see Filter Wildcards in the ClearSCADA Guide to Lists.)