Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$ |
Description |
Much simpler email expression. This one forces a length of 2 or 3, which fits current specs, but you may need to alter the end as this one allows all numerals on the .COM section. |
Matches |
|
Non-Matches |
word | word@ | @word |
Author |
Rating:
Gregory Beamer
|
Title |
Test
Details
Pattern Title
|
Expression |
^.+@[^\.].*\.[a-z]{2,}$ |
Description |
Most email validation regexps are outdated and ignore the fact that domain names can contain any foreign character these days, as well as the fact that anything before @ is acceptable. The only roman alphabet restriction is in the TLD, which for a long time has been more than 2 or 3 chars (.museum, .aero, .info). The only dot restriction is that . cannot be placed directly after @.
This pattern captures any valid, reallife email adress. |
Matches |
|
Non-Matches |
|
Author |
Rating:
Thor Larholm
|
Title |
Test
Details
Pattern Title
|
Expression |
^((?:(?:(?:[a-zA-Z0-9][\.\-\+_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\.\-_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$ |
Description |
Captures Submatches, problem:domainname length can be longer than 64 chars, because every [a-zA-Z0-9][\.\-_] is only countet as one char. |
Matches |
|
Non-Matches |
|
Author |
Rating:
Sebastian Hiller
|
Displaying page
of
pages;
Items to