Re:Here comes the greatest Internet landgrab in history
by joezydeco on Wednesday June 13, 2012 @10:14AM
(#4106004)
How many domain-name filter regexs are hardcoded to .com/.net/.org/.mil and will never work on these new domains? Yeah, I know the countries are out there as well, but that's still a known whitelist, right?
[ Parent
| on HN ]
Re:Here comes the greatest Internet landgrab in history
by seanp2k2 on Wednesday June 13, 2012 @11:50AM
(#4106549)
...probably a lot that are written by those who do not care enough to read RFCs. I was recently asked on an interview to write regex that grabs "valid" e-mail addresses. I asked if I could review the RFC so I could write useful regex. I was denied, and I ended up totally uninterested in this trendy company with amateurish standards.
Re:Here comes the greatest Internet landgrab in history
by w1nk on Wednesday June 13, 2012 @12:37PM
(#4106865)
Slightly off topic, but even with access to the RFC you weren't likely to get that one right. Validating any email address correctly with a regex is nearly impossible (a canonical example of the horror: http://ex-parrot.com/~pdw/Mail-RFC822-Address.html and even that one has a limitation or 2). I think the only correct answer to that question is to suggest an alternative to a regular expression. It could be that was the answer they were looking for.