Skip to main content

LIKE

The security rules support the regular expression operator "like". This operator is case insensitive.

Syntax:  

(EXPRESSION) like (EXPRESSION)

 

Examples and results:  

ExampleResult
resource.name like "mya*"

Evaluates all resources with names beginning with "mya" to True, irrespective of case.

Note: The 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*.