I was making an app which required partitioning based on the domain of
the user email and initially struggled to create the correct expression.
The following is a neat little expression that can be used not only for
partitioning but for any formula w...