Hacker News new | ask | show | jobs
by andrey-p 4058 days ago
Besides unit testing, with regexes I always put a quick comment like "matches foo but not bar or baz" which might not be comprehensive but allows the next person to get a quick understanding of what the code does at a glance.