<%NUMBERING1%>.<%NUMBERING2%>.<%NUMBERING3%> PRTG Manual: Regular Expressions
For some sensors (for example, some HTTP sensors and email sensors), you can use regular expressions to match a search pattern. PRTG suppors PCRE-RegEx. Please see below for examples with the most common patterns.
Find matches containing the word error or alarm:
\b(error|alarm)\b
Find matches containing the words error and alarm in any order:
(?=.*\berror\b)(?=.*\balarm\b).*
Find matches containing all of the words tree, flower, leaf, and bug, in any order:
(?=.*\btree\b)(?=.*\bflower\b)(?=.*\bleaf\b)(?=.*\bbug\b).*
Note: It is not possible to match an empty string using PRTG's regex search with sensors.
The search pattern
(?=.*\berror\b)(?=.*\balarm\b).*
will match the following expressions:
- alarm error
- error alarm
- I am an error and I evoke an alarm
- I am an alarm and I indicate an error
- An alarm combined with an error indeed!
- An error combined with an alarm, too!
Regex Tester: Test Regular expressions interactively
Wikipedia: Regular expression
Keywords: