Version: v2024-01-09 | Includes use: Yes |
---|
Criterion name: Regex
Matches a regular expression against a string, especially to apply behaviors flexibly based on the contents of dynamic variables.
Default criterion
These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.
data "akamai_property_rules_builder" "regex" {
rules_v2024_01_09 {
name = "Regex"
comments = "Matches a regular expression against a string."
criterion {
regular_expression {
case_sensitive = true
regex = ""
match_string = ""
}
}
}
}
"criterion": [
{
"name": "regularExpression",
"options": {
"caseSensitive": true,
"regex": "",
"matchString": ""
}
}
]
Options
Option | Description |
---|---|
match_string |
The string to match, typically the contents of a dynamic variable.
|
regex |
The regular expression (PCRE) to match against the string.
|
case_sensitive |
Sets a case-sensitive regular expression match.
|