TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Regular Expression Tool for Live Editing/Testing of RegExps made with jQuery

43 pointsby KrisJordanover 15 years ago

10 comments

thaumaturgyover 15 years ago
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.
评论 #894829 未加载
KrisJordanover 15 years ago
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!
endergenover 15 years ago
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>
评论 #894845 未加载
评论 #894798 未加载
audionerdover 15 years ago
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>).
评论 #895296 未加载
mustpaxover 15 years ago
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.
tommy_mcclungover 15 years ago
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.
评论 #895624 未加载
yeahitover 15 years ago
I use this - try example 4:<p><a href="http://en.gibney.org/calculator/" rel="nofollow">http://en.gibney.org/calculator/</a>
mkycover 15 years ago
See also <a href="http://regexpal.com/" rel="nofollow">http://regexpal.com/</a>
songismover 15 years ago
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
gojomoover 15 years ago
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>