diff --git a/RegEx/EmailAddress.regex.txt b/RegEx/EmailAddress.regex.txt index bcd2c6f..b61ce96 100644 --- a/RegEx/EmailAddress.regex.txt +++ b/RegEx/EmailAddress.regex.txt @@ -1,10 +1,10 @@ -# Matches an Email Address -(?\w # Match the username, which starts with a word character -[\w\-\.]{0,} # and can contain any number of word characters, dashes, or dots -)\@ # Followed by an @ -(?\w # The domain starts with a word character -[\w\-]{0,} # and can contain any words with dashes, -(?:\. # followed by at least one suffix (which starts with a dot), -\w # followed by a word character, -[\w\-]{0,} # followed by any word characters or dashes -){1,}) +# Matches an Email Address +(?\w # Match the username, which starts with a word character +[\w\-\.]{0,} # and can contain any number of word characters, dashes, or dots +)\@ # Followed by an @ +(?\w # The domain starts with a word character +[\w\-]{0,} # and can contain any words with dashes, +(?:\. # followed by at least one suffix (which starts with a dot), +\w # followed by a word character, +[\w\-]{0,} # followed by any word characters or dashes +){1,})