Multiple choice technology programming languages

Which regular expression matches email address [email protected]?

  1. \w+@\w+.[\w]{3}

  2. ^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+-+)|([A-Za-z0-9]+.+)|([A-Za-z0-9]+++))[A-Za-z0-9]+@((\w+-+)|(\w+.))\w{1,63}.[a-zA-Z]{2,6}

  3. [\w.-][a-zA-Z0-9_]@[\w.-][a-zA-Z0-9].[a-zA-Z][a-zA-Z.]*[a-zA-Z]

  4. All of above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All three patterns match the email. The first matches standard characters before and after the '@' plus a three-letter domain. The second and third allow symbols like dots/dashes and match the domain format correctly.