Hacker News new | past | comments | ask | show | jobs | submit login

[a-f]{4,} works as well... but I do like your solution!



[a-f]{4} is shorter.


  ^[a-f]*$
Is the same length too.




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

Search: