A Rule Expression is a string of text following a Rule Type of
in your Security and Firebase rules which is then evaluated by Firebase to make security decisions. For example:
".read": "auth.uid == $user && data.child('active').val() == true"
When dealing with strings in the rules (e.g. contained in your auth object or returned by val), we provide a few methods to help with validation and manipulation. See String for details.