Skip to main content

LIKE

The security rules editor supports the regular expression operator "like". This operator is not case sensitive.

For more information, see applicable javascript documentation.

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.

Information noteEntering an asterisk at the end of the condition in the Basic view automatically translates to "like" in the condition in the Advanced view.

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!