Regular expressions with Cloudlets rules
Regular expression support
Some Cloudlets support the use of regular expressions in match rules. The regular expression can be up to 256 characters.
RE2 regular expression library
Cloudlets use the RE2 regular expressions library, which uses the finite-state machine (FSM) computational model and uses a C++ interface. Click https://github.com/google/re2/wiki/syntax, or go to a similar site, for information about RE2's syntax.
Cloudlets that support regular expressions
These Cloudlets support regular expressions in match rules:
Cloudlet | Support provided |
---|---|
Audience Segmentation |
|
Edge Redirector |
|
Forward Rewrite |
|
Input Validation |
|
Valid characters
The following diagram shows the characters you can use for each part of the URL when creating a regular expression for Cloudlets.

Escaping special characters
If your regular expression includes any characters that have a special use in regular expressions (like “.”, “+”, or “?”), you must use a backslash (“\”) to escape each special character.