Hacker News new | ask | show | jobs
by 6cxs2hd6 4377 days ago
Exactly. Isn't this as bad an idea as trying to parse HTML with regular expressions? [1]

[1]: http://stackoverflow.com/questions/1732348/regex-match-open-...

1 comments

No, it's not, URIs are regular, so using regular expressions is perfectly fine.
Good point. You're right, it's not as bad an idea.

(I still think it's not a great idea. Being regular isn't necessarily the same as being parseable with a maintainable regex.)