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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Do I need a regex book?

3 点作者 solipsist将近 14 年前
I'm starting to learn ROR and have noticed that regular expressions show up quite often. I'd like to get a solid understanding of them, but no online tutorial seems to be sufficient.<p>I've seen that the books like <i>Mastering Regular Expressions</i> and <i>Regular Expressions Cookbook</i> have great reviews on Amazon, but I'm wondering if it would be overkill to get a full book on something that I would only be using every so often.<p>I've also considered getting a reference book on regex, but those seem to offer no introduction/explanations whatsoever (which I need).<p>Is it worth it for me to read up a lot on regex?

4 条评论

Someone将近 14 年前
1. You mention RoR, so I assume you are not aiming to understand the abstract computer science notion, but the practical thing as to what regular expression libraries (ruby's in particular) understand.<p>2. You do not mention which online tutorials you found insufficient. That makes it hard to recommend things. For example do you know about <a href="http://www.regular-expressions.info" rel="nofollow">http://www.regular-expressions.info</a>?<p>3. Have you played with regular expressions interactively? That could be through the command line, or via <a href="http://rubular.com/" rel="nofollow">http://rubular.com/</a> (there are tons of such tools online, some better, but this one is for ruby)<p>As to your last question: whether it is worth for you? That depends on way too many unknowns for me to answer.
throwaway628将近 14 年前
<a href="http://inst.eecs.berkeley.edu/~cs164/sp11/lectures/lecture2.pdf" rel="nofollow">http://inst.eecs.berkeley.edu/~cs164/sp11/lectures/lecture2....</a><p>start at page 4.
评论 #2832558 未加载
rhizome将近 14 年前
The best reference materials for regular expressions are available for free on all operating systems that have Perl installed: `perldoc perlretut` and `perldoc perlre`, in that order.<p>EDIT: ...in a terminal window.
staunch将近 14 年前
Yes. Read Mastering Regular Expressions.
评论 #2828522 未加载