Information
Announcement Support for this product will end on November 3, 2025. We recommend that you use PATROL for Linux, PATROL for AIX, or PATROL for Solaris to monitor operating systems.

Characters


You can use the following special characters when creating a regular expression.

Warning

Note

In PATROL KM for UNIX and Linux, the parenthesis ( ) and pipe | characters are paired with a backslash \. This pairing varies from the standard regular expression character set.

Regular Expression Characters

Character Examples

The following examples illustrate how to use regular expressions.

any two-character string

..--matches any two characters

upper and lower case

[Ww]arning--matches Warning or warning.

exclusion

[^a-zA-Z]--matches anything except uppercase and lowercase letters.

a character followed by zero or more occurrences of a character

st*--matches a string that contains an s followed by zero or more t's.

repeated sequences

(st)+--matches a string that has one or more sequences of st.

anything

.*--matches anything.

word regardless of case

warning
|Warning--matches warning or Warning.

space or tabs that precede a string

^[ \t]+--matches any string that begins with spaces or tabs.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL for UNIX and Linux 9.13