Cookie value matches

Matches when a specific request cookie’s value matches a regular expression pattern.

This condition inspects the Cookie request header to determine if the value of a specific cookie matches a regular expression. It returns true if the named cookie contains a value that matches 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 matches 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 true.
  • No match found: If the cookie’s value does not match the pattern, the condition returns false.
  • Missing cookie: If the specified cookie is absent from the request, the condition returns false.

Last modified March 5, 2026