Skip to main content

MATCHES

The security rules editor supports the regular expression operator "matches". This operator is case insensitive and returns results that match your expression, irrespective of case. Regex start and end anchors are implicitly added.

Syntax:  

(EXPRESSION) matches (EXPRESSION)

 

Examples and results:  

MATCHES operator examples and results
ExampleResult
resource.name matches ".*yAp.*" Evaluates all resources with names containing "yap" to True, irrespective of case.
resource.resourcefilter matches "Stream_\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}"Evaluates to True if the access request resource filter has the correct format.