/^((?!\.)[\w-_.]*[^.])(@\w+)(\.\w+(\.\w+)?[^.\W])$/gim;
Just playing with Reg Ex. This to validate emails in following ways
There was created 3 groups into this validations that could be used for custom purposes or replacements
mailname@domain.com