The RegExpr condition applies a regular expression to certain data. It uses the properties ApplyTo, Offset, Length, UseDataAvail and IfNull to determine what data will be subject to the regular expression test and what the return value will be if the data isn't available. Also see section “Specifying Data for Conditions”.
Type | Binary Data |
Default | (empty) |
Description | The Data attribute specifies the regular expression to be applied to the data referenced by ApplyTo, Offset and Length. |
Type | Distinct Values |
Default | Any |
Description |
Specifies the regular expression must match the complete data or if any substring matching the regular expression is sufficient. Allowed values are:
|
This attribute is only applicable if the condition is used within a TcpRuleRecvProto rule. See section "GenVerify Attribute Of Conditions" for details.
<RegExpr> <ApplyTo>Http.Response.Body</ApplyTo> <Data><html>.*</html></Data> </RegExpr>