Try this exercise. Fill in the missing part by typing it in.
To validate an email address, we can use a regular expression. This regular expression pattern matches the ___ of an email address.
The regular expression for email validation can be defined as:
1/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)*(\.[a-zA-Z]{2,})$/
The blank in the regular expression pattern represents the ___ of an email address.
Explanation: The regular expression pattern is divided into several parts to match the different components of an email address. The first part [\w-]+
matches one or more word characters or hyphens, representing the ___, which is the text before the @ symbol. The second part (\.[\w-]+)*
matches zero or more occurrences of a period followed by one or more word characters or hyphens, representing the ___. The third part @[\w-]+
matches the @ symbol followed by one or more word characters or hyphens, representing the ___. The last part (\.[a-zA-Z]{2,})
matches a period followed by two or more letters (lowercase or uppercase), representing the ___.
In summary, the regular expression pattern matches the ___ of an email address.
Write the missing line below.