This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html Multipage: http://www.whatwg.org/C#e-mail-state-(type=email) Complete: http://www.whatwg.org/c#e-mail-state-(type=email) Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/ Comment: better validation check "/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z ]{2,4}|[0-9]{1,3})(\]?)$/" Posted from: 59.88.54.92 User agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
Using \w is not better, because there's no guarantee that different systems will have the same idea of what \w means.