What is this site about?
Now you have two problems is a simple and somewhat ugly site intended to allow programmers to quickly and easily test regular expressions as they craft them. It probably won’t be of much interest to people who don't understand how to create regular expressions. It is somewhat inspired by a similar site called Rubular, but with a different strategy behind the scenes (Rubular makes Ajax calls to a server-side Ruby script to test expressions, whereas this site does its thing entirely in JavaScript, which allows it to respond much more quickly). Additionally, if you have a fairly modern browser, Two problems can remember the patterns you’re working on between sessions.
Whose fault is this?
Two problems was created by Garrett Albright, a web developer reluctantly based in northern California. But he had some help with the jQuery JavaScript library.
Feel free to get in touch with Garrett if you have any questions, suggestions, or bug reports.
Two problems is waeome! How can I repay you?
I’m not accepting any donations, but I bet your local blood bank is. Have you donated blood recently? Why not take a few minutes out of your day to become a superhero?
What does the name mean?
An oft-quoted quip in the world of programming goes something like this: “Sometimes you have a problem, and you decide to solve it with regular expressions. Now you have two problems.” Check out this article for more information about this phrase and its origins.
How does Two problems remember my patterns? What personal info is it storing about me?
When you navigate away from Two problems, the site uses the new local web storage feature of HTML5 to remember the patterns you were working on (if your browser supports it). This info is stored on your local computer in much the same way as a browser cookie. When you return to the site, Two problems using this data to create testers using your data. This information is never sent to the Two problems server, and is inaccessible by any other server on the internet (browser flaws notwithstanding).
If you would prefer that the site not store the patterns you’re working on on your computer, simply remove all testers from the page before navigating away from the site. If there’s no testers open, the site will have nothing to save, and will also delete any pre-existing saved data.
Tell me some legal BS.
Okay. Two problems is © 2010-2011 Garrett Albright. All code and other materials in this project are available under the MIT License. Two problems is entirely free to use as a service. I hate gratuitous advertising and invasive user tracking as much as you do, so this site features no advertisements and no personal identification is collected or tracked on this site, save for user agent strings and IP addresses as is standard for standard web server logging. I hope you find Two problems useful.