Difference between revisions of "Regexp:Email"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
|id=Email
 
|id=Email
 
|regexp=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)!(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/
 
|regexp=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)!(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/
|message=Must be a valid e-mail address}}
+
|message=Must be a valid e-mail address
 +
|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]] !.
 
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:12, 1 March 2021

id Email
regexp /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)!(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/
base type
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 !.