This regular expression provides a balance between RFC compliance and security-best-practices. It is designed to prevent injection vectors in legacy systems by using a restricted "safe" character subset recommended by the OWASP Validation Regex Repository.
Pattern:
^[A-Za-z0-9][A-Za-z0-9_+&*-]*(?:\.[A-Za-z0-9_+&*-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z]{2,63}$
Key Features:
_+&*- to prevent exotic character injections (e.g., pipes or backticks).^ and $ to ensure the entire input is validated.