MATCHES
The security rules editor supports the regular expression operator "matches". This operator is case sensitive and returns only results that exactly match your expression.
For more information see applicable javascript documentation.
Syntax:
(EXPRESSION) matches (EXPRESSION)
Examples and results:
Example | Result |
---|---|
resource.name matches ".*yAp.*" | Evaluates all resources with names containing "yAp" to True. |
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!