LIKE
The security rules support the regular expression operator "like". This operator is case insensitive.
Syntax:
(EXPRESSION) like (EXPRESSION)
Examples and results:
Example | Result |
---|---|
resource.name like "mya*" | Evaluates all resources with names beginning with "mya" to True, irrespective of case. Information noteThe example refers to how the string will look in the Conditions box, in the Advanced section. Do not use quotation marks in the Basic section, because the quotation marks will be interpreted as part of the search string, which they most likely should not be. In the Basic section the search string should look as follows: mya*. |
Information noteIf possible, avoid using the like operator, as it can have negative impact on rule evaluation performance.