I already worked through the documentation of Googles FireBase security rules, but I am struggling to get a verification done, where the eMail-address of the FireBase Authtoken is checked if it is part of a domain (like "*@test.de") before reading the FireStore-database is allowed.
I tried:
auth.token.email.matches(/.*@test.de$/)
I copied it from https://firebase.google.com/docs/reference/security/database , but it doesn't seem to work for FireStore.