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. |