3782. Find Valid Emails
My accepted SQL solution to LeetCode problem 3782, Find Valid Emails, running in 574ms.
- Difficulty: Easy
- SQL
- Runtime 574ms
- Memory 0.0B
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
SQL
Accepted on LeetCode — runtime 574ms, memory 0.0B, accepted 2026-01-01.
SELECT user_id, email
FROM Users
WHERE email REGEXP '^[a-zA-Z0-9_]+@[a-zA-Z]+\\.com$'
ORDER BY user_id ASC;