Test, validate and match regular expressions
This regular expression matches email addresses and breaks them down into distinct capturing groups for the username, domain, and top-level domain. It is primarily designed for email obfuscation, isolating the first character of both the local part and the domain while capturing the remaining characters. This allows developers to easily replace the middle sections with asterisks, reconstructing the string into a masked format like j*@g*.com to protect user privacy.