Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Xkcd 1313: Regex Golf (2014) (ipython.org)
6 points by zeeshanm on June 18, 2015 | hide | past | favorite | 1 comment


Maybe add [2014] to the title? It's pretty cool, though, not that often that one can read the way Peter Norvig is thinking.

Also, instead of "matches the last names of elected US presidents but not their opponents", would it be clearer to express "matches the last names of presidential candidates who got elected at some point, but not those who never became presidents" - or along these lines (sorry for the grammar). This is then a mutually exclusive list, and no interpretation problem.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: