News for hackers. Stuff that matters.
Re:Ask HN: Domain name searching by ratsbane on Sunday April 05, 2009 @07:41AM (#547298)
That regexp would allow a hyphen as the first character. How about this (still assuming .com is the only permitted TLD): [a-z0-9][a-z0-9-]*[a-z0-9].com$

There are no comments on this comment yet.