Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

email: E a, b,., ) r is a syntactically valid email address ) Definition of \"sy

ID: 3595006 • Letter: E

Question

email: E a, b,., ) r is a syntactically valid email address ) Definition of "syntactically valid email address": We assume email addresses contain only the characters a and b (no digits and none of the other Roman alphabet symbols), in addition to the and . symbols. Emails are of the form usernameOhost.domain where username and host are nonempty and may contain a, b, or ., but never two . 's in a row, nor can either of them begin or end with a .), and domain must be of length 2 or 3 and contain only a and b. For example, aaa.bba.bbboababab.bbab.aaa and ababa@baba.ab are valid email addresses, but ab.ab is not (no O symbol), nor is .abGab.ab (username starts with a .), nor is ab@ab.abab (domain is too long)

Explanation / Answer

Solution:

The given regex will satisfy the requirements mentioned.

^[w.]+@[a-zA-Z_]+?.[a-zA-Z]{2,3}$

Please, please upvote and ask your doubts in the comments