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:  

LIKE operator example and result
ExampleResult
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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!