-
Home
- Appendix
Regular Expressions
Regular expressions are a powerful tool for matching patterns. They are used in Monitoring Studio X to define the strings to be search for, like a process name, an error in a file, some information in a Web page, some content in a database, etc.
Monitoring Studio X supports the following regular expressions:
Character | Description | Examples |
---|---|---|
. (dot) |
Represents any single character. | Err.. will match Err01 , Err02 , ErrAB , etc. |
[xyz] |
Matches any character enclosed in the square brackets. | Err[123] will match Err1 , Err2 or Err3 [Ee]rror will match either error or Error |
[^xyz] |
Matches any character not listed in the square brackets. | Err[^12345] will match any string containing neither 1, 2, 3, 4, and 5 such as Err0 , Err6 , Err7 , but not Err1 . |
[a-z] |
Matches any character collated between the two characters specified. | Err[0-9] will match Err0 , Err1 , Err2 , Err3 , Err4 , Err5 , Err6 , Err7 , Err8 , and Err9 Err[A-Z][0-9] will match ErrA0 , ErrA1 , ErrS9 , ErrZ0 , etc. but not Err1A Err[A-Z0-9] will match ErrA0 , ErrA1 , etc. and Err1A |
[^a-z] |
Matches any character not collated between the two characters specified. | Application[^0-9] will match ApplicationA ,ApplicationB , Application! but not Application1 |
* |
Matches a string of zero or more strings of the regular expression specified. | Err[0-9A-F]* will match Err , Err0 , ErrA , Err11 , ErrBF0001 , etc. Error.*ApplicationABC will match all lines that contain Error and ApplicationABC further (Critical Error 0x000295F0 on ApplicationABC ) |
+ |
Matches a string of one or more strings of the regular expression specified. | Err[0-9A-F]+ will match Err0 , ErrA , Err11 , ErrBF0001 , etc. but not Err |
^ |
Matches the beginning of the line. | ^Err will match all lines that begin with Err |
$ |
Matches the end of the line. | [0-9]+ connections$ will match all lines ending with xxx connections where xxx is an integer |
\< |
Matches the beginning of a word. | \<set will match any line containing a string that begins with set but not with a line that only contains the word unset |
\> |
Matches the end of a word. | [Aa]pplication will match all lines that contain the word Application or application but not ApplicationAA |
\(expression\) |
Defines an expression which has to be processed as a unit regarding the modifier \* , + and \ . |
\(\_[a-zA-Z0-9]\)+ will match only sequences like \_patrol , \_patrol_agent , \_patrol_console , etc. |
exprA\|exprB |
Matches either exprA or exprB . |
\(firewall\)\|\(antivirus\) will match all lines that contain either the word firewall or the word antivirus |
\ |
Escape character to indicate that the character that follows should be treated differently. | \. will match the single character dot (.). C:\\Program Files will matchC:\Program Files |
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.