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.

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!