Test, validate and match regular expressions
Validates email addresses using named capture groups for each component: localPart, domain, subDomain, and TopLevelDomain. The pattern matches the local part before @, followed by a domain with required subdomains (2-10 chars) and an optional top-level domain (2-6 chars). Includes an inline comment explaining its purpose. Useful for form validation and contact information parsing.