Owners Manual
Create Source Group Criteria | Change Management and Compliance
508 OMNM 6.5.2 User Guide
Regular Expressions
Regular expressions include metacharacters to instruct the program how to treat characters it
encounters. These include the following: ^, $, . , | , { , } , [ , ] , ( , ), *, +, ? , \. If you want to match
one of these metacharacters, you must prepend a backslash (\). So to match a literal question mark,
rather than instructing regular expression matching to match 0 or 1 of a previous expression, you
must enter \?.
The following table outlines standard, supported regular expressions.
Label Pattern
Single digit \d
Two d i g it s \ d { 2}
Three digits \d{3}
Four digits \d{4}
Five digits \d{5}
Number [0-9]+ One or more
[0-9]* Zero or more
Decimal .[0-9]+
Float [0-9]+.[0-9]+
IP Address (\d{1,3}.){3}\d{1,3}
IP Address/Mask (\d{1,3}.){3}\d{1,3}/\d+
Domestic phone
number with
extension
1?[\s\-\/\.]*\(?([1-9]\d{2})\)?[\s\-\/\.]*([0-9]{3})[\s\-\/\.]*([09]{4})[\s\-\/
\.x]*([0-9]{3,4})?
MAC Address ([0-9a-fA-F]{1,2}:){5}[0-9a-fA-F]{1,2}
MAC Address ([0-9a-fA-F]{1,2}.){5}[0-9a-fA-F]{1,2}
MIB2 OID (1.3.6.1.6.1.2.1.(\d+\.)+\d)
Enterprise OID (1.3.6.1.4.1.(\d+\.)+\d)
Time [0-1][0-3]:[0-5][0-9]:[0-5][0-9]
All .*
Ending Number \d+$
Character \w
Word \w+ One or more.
\w* Zero or more.
Whitespace \s+One or more.
\s* Zero or more.
String w/o space \S+One or more.
\S* Zero or more.
New Line \n
FormFeed \f
Ta b \ t
Carriage Return \r
Backspace \b
Escape \e
Backslash \B