Product specifications

Alarm and Event
84 3BDS011222-510 B
Table 4. Expressions
Character Meaning
. Matches any single character. Same as “?” in a simple query.
[] A character class that will match all character inside the brack-
ets. [AB] will match all strings containing the character A or B.
^ [^AB] will match all characters except A and B.
- Specifies a range of character or digits if used inside a
character class. Example [A-D] matches all characters in the
range A to D and [2-6] matches all digits in the range 2 to 6.
? Indicates that the preceding expression is optional, i.e [0-9][0-
9]? matches both one and two digits.
+ Indicates that the preceding expression matches one or more
times, for example [2]+ matches 2, 22, 222 and so on.
* Indicates that the preceding expression matches zero or more
times.
??, +?, *? Tries to match as little as possible. Example the expression
<.*?> on the string “<abc><def>” will match <abc> while the
expression <.*> will match the whole string “<abc><def>”.
( ) Grouping operator. For example ([0-9]_)* will match 0 a string
of digits separated with underscores, like 0_ , 0_1, or 0_1_1.
{} Indicates a match group.
\ Escape character, used to be able to match character with
other special meaning in an expression. Example: [0-9]\+
matches a digit followed by a plus sign and not one or more
digits.
$ At the end of a regular expression, this character matches the
end of the input. Example: [0-9]$ matches a digit at the end of
the input.