A tweet-sized, fork-to-play, community-curated collection of JavaScript.
- Click the button above to fork this gist.
- Modify all the files to according to the rules below.
- Save your entry and tweet it up!
All entries must exist in an index.js
file, whose contents are
- a valid Javascript function expression, that
- optionally self-executes,
- contains no more than 140 bytes, and
- does not pollute global scope.
All entries must also be licensed under the MIT license.
The 140byt.es site hasn't launched yet, but for now follow @140bytes on Twitter.
140byt.es is brought to you by Jed Schmidt. It was inspired by work from Thomas Fuchs and Dustin Diaz.
I found this by surfing the examples at 140byt.es. It's possible to shorten your regular expression without changing anything. Simply omit most of the backslashes (not needed inside character classes) and unused brackets.
Please note that this validation (similar to almost all email validations you can find on the web) reject many valid email addresses. For example, it rejects international domain names like tüv.de. I suggest reading this very good article from the Linux Journal: Validate an E-Mail Address with PHP, the Right Way.