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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Learn Regular Expressions with simple, interactive exercises

144 点作者 pusv将近 5 年前

16 条评论

dang将近 5 年前
This was posted by a spam ring. The site has been submitted many times (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;from?site=regexone.com" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;from?site=regexone.com</a>).<p>Would you please stop this? You&#x27;re wasting your time. We ban these accounts and everything that you try to promote with them. Karma doesn&#x27;t help.
dayvid将近 5 年前
This is one of the best online learning experiences I&#x27;ve ever had. I went through it twice and never felt uncomfortable with regular expressions afterwards. The author also does this for SQL, which I haven&#x27;t tried: <a href="https:&#x2F;&#x2F;sqlbolt.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sqlbolt.com&#x2F;</a><p>Are there any other online learning courses like this?
评论 #23618258 未加载
评论 #23615974 未加载
评论 #23614382 未加载
评论 #23618105 未加载
7177Y将近 5 年前
Also <a href="https:&#x2F;&#x2F;regexcrossword.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;regexcrossword.com&#x2F;</a><p>Very good practice to reinforce fundamentals after you&#x27;re done regexone
评论 #23619488 未加载
rozab将近 5 年前
I recommend <a href="https:&#x2F;&#x2F;alf.nu&#x2F;RegexGolf" rel="nofollow">https:&#x2F;&#x2F;alf.nu&#x2F;RegexGolf</a> for timewasting
zeroflow将近 5 年前
If this is your site, my feedback is, to have a more clear cut destinction between the explaination and the task at hand.
评论 #23612639 未加载
jrumbut将近 5 年前
When you finish all the lessons, then you&#x27;ll have two problems.
Hitton将近 5 年前
Not to sound dismissive, but virtually everyone, who knows what are regular expressions, knows this. Only last, 15th, lesson starts to touch on things that are arguably not common knowledge - word boundaries and back references. Look aheads and look behinds, the parts which most people struggle with, aren&#x27;t covered at all.
asdf_snar将近 5 年前
I was going to post, &quot;that&#x27;s too bad, there&#x27;s already an excellent one out there.&quot; Yep, this is how I learned regex. In fact, I don&#x27;t even worry about forgetting regex, since 10 minutes on this and I have most of what I need.<p>Excellent, excellent website.
dwheeler将近 5 年前
It&#x27;s a cool presentation. Careful, however, this only teaches a <i>specific</i> variant of regexes (the PCRE ones). Those are common, but expressions like &quot;\d&quot; won&#x27;t work in grep, sed, or many other tools. I wish it had noted the variances.
lukifer将近 5 年前
One mnemonic that stuck with me: you can remember the start and end characters (&#x2F;^foo$&#x2F;) by imagining an animal, like a rhino: the ^ is the horn at the front, the $ is the long curvy tail at the end.
underdeserver将近 5 年前
Worth it, so you can fly in on a rope and save the day.<p><a href="https:&#x2F;&#x2F;xkcd.com&#x2F;208&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;208&#x2F;</a><p>(Yeah, I know you&#x27;ve seen it before. But 10,000 people&#x2F;day haven&#x27;t. <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;1053&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;1053&#x2F;</a>)
evolveyourmind将近 5 年前
You should fix the checker to match the whole strings, not just substrings. One can pass the following example with just \. : Match cat. Match 896. Match ?=+. Skip abc1
DiggyJohnson将近 5 年前
Thanks for sharing. Hope it helps some people out.<p>I took a look at it and have a small nitpick: you refer to the &#x27;\&#x27; character as &quot;slash&quot;. See Lesson 2 for example.<p>Cheers
TruthSHIFT将近 5 年前
I&#x27;m not a RegEx expert, but I&#x27;ve googled them enough to have the basics. This is exactly what I needed to improve my skills.
评论 #23614744 未加载
glxxyz将近 5 年前
I just read <i>man re_format</i> but that&#x27;s a lot more fun
padseeker将近 5 年前
outstanding - I&#x27;ve struggled with regex, the capture group lesson was illuminating