- From: poot <cvsmail@w3.org>
- Date: Mon, 09 Jan 2012 19:56:29 -0500
- To: public-html-diffs@w3.org
hixie: Add a note about how to implement type=email checking with a
regular expression. (whatwg r6884)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5481&r2=1.5482&f=h
http://html5.org/tools/web-apps-tracker?from=6883&to=6884
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5481
retrieving revision 1.5482
diff -u -d -r1.5481 -r1.5482
--- Overview.html 10 Jan 2012 00:08:40 -0000 1.5481
+++ Overview.html 10 Jan 2012 00:56:21 -0000 1.5482
@@ -35175,7 +35175,18 @@
simultaneously too strict (before the "@" character), too vague
(after the "@" character), and too lax (allowing comments,
whitespace characters, and quoted strings in manners unfamiliar to
- most users) to be of practical use here.<p>A <dfn id="valid-e-mail-address-list">valid e-mail address list</dfn> is a <a href="#set-of-comma-separated-tokens">set of
+ most users) to be of practical use here.<div class="note">
+
+
+
+ <p>The following JavaScript- and Perl-compatible regular expression
+ is an implementation of the above definition.</p>
+
+ <pre>/^[a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>
+
+
+
+ </div><p>A <dfn id="valid-e-mail-address-list">valid e-mail address list</dfn> is a <a href="#set-of-comma-separated-tokens">set of
comma-separated tokens</a>, where each token is itself a
<a href="#valid-e-mail-address">valid e-mail address</a>. <span class="impl">To obtain the
list of tokens from a <a href="#valid-e-mail-address-list">valid e-mail address list</a>, and
Received on Tuesday, 10 January 2012 00:58:37 UTC