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.

Xkcd 1313: Regex Golf (2014)

6 pointsby zeeshanmalmost 10 years ago

1 comment

imrehgalmost 10 years ago
Maybe add [2014] to the title? It&#x27;s pretty cool, though, not that often that one can read the way Peter Norvig is thinking.<p>Also, instead of &quot;matches the last names of elected US presidents but not their opponents&quot;, would it be clearer to express &quot;matches the last names of presidential candidates who got elected at some point, but not those who never became presidents&quot; - or along these lines (sorry for the grammar). This is then a mutually exclusive list, and no interpretation problem.