Test, validate and match regular expressions
This regex validates email addresses with strict formatting rules including maximum total length of 254 characters, local part limited to 64 characters, no consecutive dots, alphanumeric characters required in the local part, and a domain ending with a 2-4 letter TLD. It enforces RFC-like constraints such as preventing leading/trailing dots in local and domain parts, requiring word characters adjacent to the @ symbol, and ensuring proper alphanumeric content before domain delimiters.