Skip to main content
Version: 3.14.x.x LTS

Regular expressions

A regular expression has the following syntax:

[<type>/]<expression>[/]

where:

<expression>: The regular expression itself.
<type>:
PCRE[(<options>...)]:
Perl-style regular expression (regex). Without any option, a "dot" will not match any newline. Set the option "da" to achieve this.
<options>: A comma separated list of:
da: DOT_ALL. All characters (including newlines) are accepted as '.' (for example in '.*')
utf8: Perl-style regex using utf8 encoding.
cs: Case-sensitive. The regex is case-sensitive.
ci: Case-insensitive. The regex is case-insensitive. If both ("cs" and "ci") are set, then "ci" is taken.
CIDR:
CIDR notation of IP addresses and address ranges.

If no type is specified, PCRE is taken. If a different type is set, it will be specified in the relevant parameter of the respective filter or servlet.