Build, test, and debug regular expressions
This regex matches basic email addresses, consisting of a username part followed by an @ symbol and a domain part. The username allows word characters, digits, hyphens, and dots, while the domain allows word characters, digits, and hyphens in up to four dot-separated segments. It is useful for simple email validation, extracting email-like strings from text, or filtering input in forms and APIs.