Simple address
- Input
- [email protected]
- Expected output
- match completo: [email protected]
Both local part and domain use only letters, and the `.tools` TLD has 5 letters, so all three `\w+@\w+\.\w{2,}` blocks match the whole string.
email regex
The formal email specification, RFC 5322, is too long to turn into a regex for everyday use. This preset uses a pragmatic pattern and shows, with real cases, where that simplification gets it right and where it cuts the address in half.
Both local part and domain use only letters, and the `.tools` TLD has 5 letters, so all three `\w+@\w+\.\w{2,}` blocks match the whole string.
The address is valid, but the pattern only sees the part after the plus sign; `user.name+` is left out because `\w` does not include a dot or a `+`.
With no literal `@` in the middle of the string, the pattern has nowhere to anchor the split between local part and domain, so no part of the text matches.
Yes. The idea is to let you build the expression, apply flags and inspect matches in real time, which is especially useful for debugging, learning and fine-tuning patterns.
No. RFC 5322 allows quoted local parts, comments and escaped characters that this pragmatic pattern does not try to cover. It focuses on the common `[email protected]` shape, which is what shows up in nearly every real form.
No, it only confirms text shape. Proving that the inbox exists and receives messages requires sending a confirmation email with a link or code and waiting for the click or reply to come back from that address.
Because the pattern `\w` class does not include a dot or a plus sign, two characters common in real addresses that use an alias (the `+tag`) or a compound name. The match only starts after the last character outside `\w`, cutting off the beginning of the address.
Everything runs locally in your browser. Nothing is sent to a server.