Skip to content
Permalink
Browse files

[agiowt] (1) Fix the e-mail regexp to disallow commas. (Typo in the e…

…xample. Oops. I hope you didn't copy the regexp from Mike's tweet!)

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@6885 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 10, 2012
1 parent 0763c41 commit f1841b796ed7d6199065c6f71a117e4feb3e0fda
Showing with 3 additions and 3 deletions.
  1. +1 −1 complete.html
  2. +1 −1 index
  3. +1 −1 source
<p>The following JavaScript- and Perl-compatible regular expression
is an implementation of the above definition.</p>

<pre>/^[a-zA-Z0-9.!#$%&amp;'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>
<pre>/^[a-zA-Z0-9.!#$%&amp;'*+/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>

<!-- based on: http://blog.gerv.net/2011/05/html5_email_address_regexp/ -->

2 index
<p>The following JavaScript- and Perl-compatible regular expression
is an implementation of the above definition.</p>

<pre>/^[a-zA-Z0-9.!#$%&amp;'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>
<pre>/^[a-zA-Z0-9.!#$%&amp;'*+/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>

<!-- based on: http://blog.gerv.net/2011/05/html5_email_address_regexp/ -->

2 source
<p>The following JavaScript- and Perl-compatible regular expression
is an implementation of the above definition.</p>

<pre>/^[a-zA-Z0-9.!#$%&amp;'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>
<pre>/^[a-zA-Z0-9.!#$%&amp;'*+/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/</pre>

<!-- based on: http://blog.gerv.net/2011/05/html5_email_address_regexp/ -->

0 comments on commit f1841b7

Please sign in to comment.
You can’t perform that action at this time.