Yeah, this one's going straight into my bookmarks file. I've never been able to quite get my head around regular expressions -- they don't work the way I think -- and yet I keep writing things that use them.<p>Thank you for posting this.
This is my first jQuery "app" (mini-app). After going through numerous write/print debug loops writing Regular Expressions and being inspired by Crockford's "JavaScript: The Good Parts" this seemed like a fun tool to try and write in JavaScript/jQuery. Appreciate any feedback.<p>Hope this Regular Expression tool is useful to other HN readers!
Great tool. I built something similar for an internal project at my startup inspired by these two projects by Oliver Steele:<p><a href="http://osteele.com/tools/rework/" rel="nofollow">http://osteele.com/tools/rework/</a><p><a href="http://osteele.com/tools/reanimator/" rel="nofollow">http://osteele.com/tools/reanimator/</a>
Nice execution, and a clever marketing tool to reach developers who might consider their CMS.<p>I've been really happy with Rubular for testing regexps targetting Ruby (<a href="http://rubular.com" rel="nofollow">http://rubular.com</a>).
This is great stuff, definitely will be using it in the future.<p>It's worth noting, though, that this only runs the JavaScript style Regular Expressions. Escape sequences and such things will vary to a degree between different RegEx flavors. So keep that in mind if you use this tool to trouble shoot any patterns for other languages with this tool.
My last startup was a company called IMSafer <a href="http://www.imsafer.com" rel="nofollow">http://www.imsafer.com</a>. We built an entire product around extensive and extremely complicated regex's to find patterns of language that might indicate a sexual predator going after a kid. The only tool that was useful to me was Regex Buddy <a href="http://www.regexbuddy.com" rel="nofollow">http://www.regexbuddy.com</a>. Downside is that it doesn't run on the Mac, but I'm telling you for creating and debugging regular expressions it is THE tool to use. We had to optimize not only for matching, but for performance and as you know if you write your regex's wrong, you can kill performance. Regex Buddy has a debug mode that lets you see all the steps taken by the regex and lets you find ways to optimize. Highly recommended.
i prefer <a href="http://www.gskinner.com/RegExr/" rel="nofollow">http://www.gskinner.com/RegExr/</a><p>mouse over each part of your regular expression to see what it does
Very pretty!<p>My own take on the same tool also uses jQuery, plus an invisible embedded Java applet to (1) have access to Java's expanded regex syntax, and (2) enable step-by-step animation of probes of the input text used to discover matches. Try it at:<p><a href="http://regex.powertoy.org" rel="nofollow">http://regex.powertoy.org</a>