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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Detailed guide on Regex

13 点作者 zeeshanu将近 8 年前

3 条评论

jwilk将近 8 年前
There are many incompatible regexp dialects. This describes one of the dialects, but it doesn&#x27;t even say which one.<p>It is full of errors and omissions. It&#x27;s certainly not &quot;detailed&quot;.<p>I don&#x27;t recommend this as a learning source. Sorry.
tyingq将近 8 年前
<i>&quot;Just like above example the regular expression ar[.] means: an lowercase character a, followed by letter r, followed by any character.&quot;</i><p>A period inside a character class is just a period. So that&#x27;s only going to match &quot;ar.&quot;
评论 #14848035 未加载
ddebernardy将近 8 年前
Haven&#x27;t read the guide, but off the bat it would benefit by at least mentioning the potential for regex with poor performance characteristics or even catastrophic backtracking, and give a few tips on how to avoid them. Neither performance nor backtracking appear in the text anywhere, nor do possessive or atomic.
评论 #14847690 未加载