Top
Systemwalker Operation Manager Q & A Guide

6.4 Q: How Do I Use Regular Expressions?

Applicable versions and levels

A

You can use the following notations as regular expressions:

Regular expression

Meaning

.

Denotes any character.

*

Denotes 0 or more repetitions of the preceding character (including regular expressions).

^

Denotes the beginning of a line.

$

Denotes the end of a line.

[<string>]

Denotes any character used in the string.

[^<string>]

Denotes any character other than the characters used in the strings.

[<character a>-<character b>]

Denotes any character from <character a> to <character b>.

The regular expressions are as follows:

Regular expression

Meaning

abc

Denotes a string containing "abc". Example matches are "aabc" and "abcd".

abc.ef

Denotes that any character can be used between "abc" and "ef". Example matches are "abcdef" and "abc5ef".

a*b

Denotes 0 or more repetitions of the character "a". Example matches are "b", "ab", "aab", and "aaab".

.*

The combination of "." (which denotes any character) and "*" (which denotes 0 or more repetitions of the preceding character) can represent any string.

^abc

Indicates that the line begins with "abc". Example matches are "abcdef" and "abcxyz".

xyz$

Indicates that the line ends with "xyz". Example matches are "123xyz" and "ABCxyz".

3001[IWEH]

[IWEH] denotes the character I, W, E, or H. Example matches are "3001I", "3001W", "3001E", and "3001H".

3500[^IN]

[^IN] denotes a character other than I and N. Example matches are "3500a" and "3500n", and example non-matches are "3500I" and "3500N".

[0-9] TIMES

[0-9] denotes any character from 0 to 9. Example matches are "0 TIMES" and "2 TIMES".

Example settings: Specifying source names for monitoring events

Defining a string that contains the string "Check" and ends with "A"

Point

The regular expression "*" denotes 0 or more repetitions of the preceding character. It does not denote "any string".

Defining a string that ends with "EventA"

Defining a string that begins with "Check"

Notes