Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Order for 198:

   ^[^o].....?$
Probably not what was wanted, but it works (or maybe it was to trick people onto a false path)


This right here is why test cases are always blackboxed...


Makes my similarly off-track score of 184 seem foolish:

  ^[a-g][^airn]|[fs].*y$|ot$


Nice, I earned 197 with: ^[a-m].{1,5}$

I must say Regex golf is a lot of fun.


Nice, turn it around for 199:

  ^.{5}[^e]?$


or ^[^o].{1,5}$

198 points




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: