Email Domain Normalizer

Anyone know how i would add a searchable domain keyword field in elasticsearch, i tried using patterns but had no luck with it.