Skip to content

Commit a61d63d

Browse files
authored
Update 50-01517-find-users-with-valid-emails.sql
1 parent 5c1d440 commit a61d63d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
-- regexp pattern
2+
-- ^ = starting should be this
3+
-- * = can be any number of characters
4+
-- [.] = should be a dot
5+
-- $ = end- no characters after this
16

7+
select *
8+
from Users
9+
where mail regexp '^[A-Za-z][A-Za-z0-9_.-]*@leetcode[.]com$'
10+
11+
-- no companies listed

0 commit comments

Comments
 (0)