Cookie value does not match

Matches when a specific request cookie’s value does not match a regular expression pattern.

This condition inspects the Cookie request header to determine if the value of a specific cookie does not match a regular expression. It returns true if the named cookie contains no values that match the defined pattern.

Configuration

  • Case sensitive: Whether to enable case sensitivity during the name and value comparison. When disabled, the condition performs a case-insensitive match for the cookie name and evaluates the pattern against all cookies that match that name.
  • Cookie name: The exact name of the cookie to inspect. This field is required and supports a maximum of 50 characters.
  • Cookie value pattern: The RE2 regular expression used to evaluate the cookie’s value. The condition returns true if the pattern does not match the value of the specified cookie. This field is required and supports a maximum of 255 characters.

Measurement

The condition extracts the specified cookie name from the Cookie request header and evaluates its value against the configured pattern.

  • Match found: If the cookie’s value matches the regular expression, the condition returns false.
  • No match found: If the cookie’s value does not match the pattern, the condition returns true.
  • Missing cookie: If the specified cookie is absent from the request, the condition returns true.

Last modified March 5, 2026