Difference between revisions of "Regexp:Email"
Jump to navigation
Jump to search
Tim Holzheim (talk | contribs) |
Tim Holzheim (talk | contribs) |
||
Line 3: | Line 3: | ||
|regexp=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)!(".+"))@((\[(?:[0-9]{1,3})\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])!(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ | |regexp=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)!(".+"))@((\[(?:[0-9]{1,3})\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])!(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ | ||
|message=Must be a valid e-mail address | |message=Must be a valid e-mail address | ||
− | |or char=!}} | + | |or char=! |
+ | |base type=regexp | ||
+ | }} | ||
The regexp is taken from https://stackoverflow.com/questions/46155/how-to-validate-an-email-address-in-javascript and the pipe char is replaced by the default [[Property:Regexp or char]] !. | The regexp is taken from https://stackoverflow.com/questions/46155/how-to-validate-an-email-address-in-javascript and the pipe char is replaced by the default [[Property:Regexp or char]] !. |
Revision as of 11:24, 1 March 2021
id | |
---|---|
regexp | /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)!(".+"))@((\[(?:[0-9]{1,3})\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])!(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ |
base type | regexp |
inverse | |
message | Must be a valid e-mail address |
or char | ! |
base prefix |
Regexp
The regexp is taken from https://stackoverflow.com/questions/46155/how-to-validate-an-email-address-in-javascript and the pipe char is replaced by the default Property:Regexp or char !.