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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Common Regular Expressions Made Simple

26 点作者 madisonmay超过 11 年前

4 条评论

brudgers超过 11 年前
I am reminded of VerbalExpressions <a href="https://github.com/VerbalExpressions" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;VerbalExpressions</a> which hit HN in early August. Interested in learning more about regex&#x27;s I did some work on a Racket port.<p>That project shows there are two tracks by which to tackle the problem that regex syntax is incoherent gobbledygook. The first is creating a regex version of pho with 5000 functions and mix and match names piece by piece. The second is to rename regex symbols to something that is easier for humans to parse.
评论 #6921708 未加载
JadeNB超过 11 年前
Unless I&#x27;m not understanding my way around the project, this seems to be a very small library of regular expressions. As one would expect, Perl&#x27;s offerings blow anything else out of the water: <a href="http://search.cpan.org/~abigail/Regexp-Common-2013031301/lib/Regexp/Common.pm" rel="nofollow">http:&#x2F;&#x2F;search.cpan.org&#x2F;~abigail&#x2F;Regexp-Common-2013031301&#x2F;lib...</a>.
JazCE超过 11 年前
I&#x27;m gonna be <i>That Guy</i> and say that the e-mail regex isn&#x27;t upto scratch and probably should not be included.<p>generally, very good.
评论 #6920493 未加载
评论 #6920656 未加载
评论 #6920788 未加载
camus2超过 11 年前
Isnt there an i18n extension built on lib ICU in python , like Intl extension in PHP ?<p><a href="http://site.icu-project.org/" rel="nofollow">http:&#x2F;&#x2F;site.icu-project.org&#x2F;</a><p>I&#x27;m sure there are better alternatives than just regexp to validate numbers, emails ,etc ...
评论 #6920717 未加载