Question: Create a Regular Expression Example: (a|b|.)*@(a|b|.)*.((a|b)(a|b)|(a|b)(a|b)(a|b)) email: E a, b,., ) r is a syntactically valid email address ) Definition of syntactically valid email address:
Create a Regular Expression
Example: (a|b|.)*@(a|b|.)*.((a|b)(a|b)|(a|b)(a|b)(a|b))
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)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
