^
to indicate the beginning of the string.[a-zA-Z]
to match the first character as a letter (either upper or lower case).[a-zA-Z0-9_.-]*
to match any subsequent characters that can be letters, digits, underscores, periods, or dashes, repeated zero or more times.@
symbol with \@
as it is a special character in RegEx.leetcode\.com
(escaping the period).$
to indicate the end of the string.REGEXP
operator in the SQL query to filter the emails based on the pattern.erDiagram Users { int user_id varchar name varchar mail }