You can enter a regular expression in Client Rules and Agent Rules. A regular expression is an object that describes a pattern of characters. Regular expressions perform pattern-matching and search-and-replace functions on text.

URL Content Redirection supports the following regular expression rules.

Rule Detail
Brackets [ ], [^ ], ( ), (?:), (?=)
\+metacharacter or metacharacter '\w', '\W', '\d', '\D', '\b', '.'
Quantifiers +, *, ?, {x}, {x,y}, {x,}
Alternation |

For detailed information about regular expressions, see

The following table contains examples of regular expression rules that URL Content Redirection supports.

Note: The bold text in the second column indicates the portion of the URL that is matched against the regular expression in the left column.
Rule Entry Examples of Matching URLs and IP Addresses
.*\.net,,,, and
.*\.sth\.ctirial example.sth.ctirial,, and
.*administra,, and google.akmkda.eae/
.*a{4}custom\.com,, and
.*a{2,3}custom\.com,, and
.*train[abc]\.net,,, and
.*train[^abc]\.net,,, and
.*a+c*tra\.net,, and aaccctra.netword.
.*example(test)?\.cn,,, and
sac(?=sprt),, and
sac(?!sprt),, and
10\.1\.1\.1[0-5] through
10\.1\.(1|2)\.1[0-5] through and to
10\.[2-4]\.19\.12,, and
10\.[^2-4]\.19\.12,,, and
a(\w)cd(\d)345a\.com and
abc(\W)cd(\D)345a\.com and
((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]) All IPv4 addresses.
.*example(test)?\.cn;10\.1\.1\.1[0-5];a(\w)cd(\d)345a\.com,, to,, and