Test, validate and match regular expressions
This regular expression matches standard email addresses, validating the username, domain, and top-level domain (TLD) components. The local part allows word characters separated by dots or hyphens, while the domain section supports optional hyphens and subdomains. It expects a primary TLD of 2 to 3 lowercase letters, along with an optional secondary country-code TLD (e.g., '.co.uk'). Using the global and multiline flags, it is highly effective for extracting or validating multiple email addresses across multiple lines of text.