TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

43 点作者 KrisJordan超过 15 年前

10 条评论

thaumaturgy超过 15 年前
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 未加载
KrisJordan超过 15 年前
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!
endergen超过 15 年前
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 未加载
audionerd超过 15 年前
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 未加载
mustpax超过 15 年前
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_mcclung超过 15 年前
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 未加载
yeahit超过 15 年前
I use this - try example 4:<p><a href="http://en.gibney.org/calculator/" rel="nofollow">http://en.gibney.org/calculator/</a>
mkyc超过 15 年前
See also <a href="http://regexpal.com/" rel="nofollow">http://regexpal.com/</a>
songism超过 15 年前
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
gojomo超过 15 年前
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>