- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 10 Jan 2012 00:56:25 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv21761
Modified Files:
Overview.html
Log Message:
Add a note about how to implement type=email checking with a regular expression. (whatwg r6884)
Index: Overview.html
===================================================================
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:56:26 UTC