- Task
- Find an email address which includes a name of up to 20 characters, the symbol @, and a domain of up to 30 characters.
- Solution
- [a-z]{2,20}@[a-z.]{3,30}
- Explanation
-
[a-z]{2,20}
The first part of the email address, the name, can be between 2 and 20 characters long and may include only lower case letters.