Build, test, and debug regular expressions
This regex is designed to match standard email addresses while capturing the entire address, the local part (before the @), and the domain part (after the @) into separate groups. It expects the top-level domain to be strictly between 2 and 3 characters long, making it suitable for common domains like .com or .net. It allows letters, numbers, hyphens, and dots in both the username and domain sections.