Test, validate and match regular expressions
This regex validates email addresses by matching the local part (letters, digits, dots, underscores, hyphens), the @ symbol, and a domain part that includes alphanumeric characters, dots, and hyphens, followed by a top-level domain of at least two letters. It is commonly used in form validation, data cleaning, and email extraction tasks to ensure basic email format correctness.