The regular expression syntax in PAN-OS® is similar to traditional regular expression engines but every engine is unique. The
Classic Syntax and
Enhanced Syntax tables describe the syntax supported in the PAN-OS pattern-matching engines.
|
|
|
|
|
|
|
Example: \s matches a space, tab, line break, or form feed.
|
|
|
|
|
|
|
|
|
Example: \v matches a vertical white space character.
|
|
|
Example: \h matches a horizontal white space character.
|
|
|
|
|
|
|
|
{n,m} matches from n to m times.
Example: a{2,4} matches aa, aaa, and aaaa
|
|
|
{n,} matches at least n times.
|
|
|
|
|
Example: Given the string abc, ^a matches a, but ^b doesn’t match anything because b doesn’t occur at the start of the string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example: ((?i)\bconfidential\b) matches ConfiDential.
|
|
|
Make ^ and $ match at the beginning and end of lines.
|
|
|
Make . match anything, including line break characters.
|
|
|
|