Skip to content

Comment on Show HN: No more writing shitty regexes to police usernamesparent

Comments

It's odd that they focused so much on "it's better than regexes" when it doesn't handle these cases where a regex would do well.

The comment on regex was really because that's what I did when I built internal reserved usernames list of 2 of my URL shortener projects. I love regex, btw. BUT, I don't think they cover all of what we need with usernames specifically. Shared some more insights on the thread about variations too (like underscores etc.).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.