TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Detailed guide on Regex

13 pointsby zeeshanualmost 8 years ago

3 comments

jwilkalmost 8 years ago
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.
tyingqalmost 8 years ago
<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 未加载
ddebernardyalmost 8 years ago
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 未加载