Build, test, and debug regular expressions
This regular expression validates an email address while capturing specific components like the username, domain, and top-level domain into groups. It supports standard domain names as well as IP address formats enclosed in square brackets. It is useful for applications that need to both verify and extract distinct parts of an email address.