Like Rubular, but for JavaScript.
Click an entry to see it in action:
options:
This regex looks like the terminal output of a linux engineer as he fits all over his keyboard:^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$
Its messy, but it does the trick.
User agent sniffing is for douchebags and server dorks who don't like responsive web design but also for cool developers who are forced to do user agent sniffing cus their boss doesn't believe in progressive enhancement. Here's a few I've had to do in my time.
Check for IE10:(/MSIE 10/).test(navigator.userAgent)