Test, validate and match regular expressions
This regex validates email addresses with named capture groups for local part, host, and the full email. It supports RFC-compliant features like quoted strings in the local part, special characters, and both standard domains and IP literals (e.g., user@[127.0.0.1]). Useful for form validation and email parsing where detailed component extraction is needed.