Test, validate and match regular expressions
This regex validates email addresses. It checks the local part for alphanumeric characters, optional hyphens, dots, and underscores, and the domain part for hyphen-separated labels and a top-level domain of 2-3 letters. Commonly used in web forms to ensure basic email format.