RegExpr and RegExprTag Attribute

Value Description
Type Strings, Numbers
Default (empty), 0
Description

These two attributes specify a regular expression that is used for searching rule hits. If the attribute RegExprTag is not omitted, it must specify the number of a tagged sub-expression within the given regular expression.

Rule hits are searched for by applying the given regular expression to HTTP responses. Each substring of an HTTP response that matches the regular expression is a rule hit. If the attribute RegExprTag is specified, the rule hit is not the entire match, but the given tagged sub-expression.

Example

<RegExpr>name=&quot;\([0-9]+\)&quot;</RegExpr>
<RegExprTag>1</RegExprTag>