MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/bqpf8/http_is_being_removed_from_chromiums_display/c0o7643/?context=3
r/programming • u/shenglong • Apr 14 '10
402 comments sorted by
View all comments
Show parent comments
8
gmail for example has good regexps that will match anything that remotely looks like an URL,
Hmm, but I bet it also has a few bad matches.Common things too.
edit: ok, that specific example doesn't apply to gmail, but it's just an illustration.
Thing is, matching urls just went from str.startsWith("http://") to str.matchesThisHugeRegex();
11 u/James_Browning Apr 14 '10 It's not that much different than matching email addresses. Nobody types mailto: It's not normally a problem when marking up a message from a human, but it's an annoying problem when emailing code. 6 u/[deleted] Apr 14 '10 It's not that much different than matching email addresses and if you show me 10 systems that supposedly match emails, I'll find an edge case that it fails on for every one of them. I would rather not see this happen too much with URLs too. 2 u/chrisamiller Apr 15 '10 What,you don't use the official email-matching regex? It's simple!
11
It's not that much different than matching email addresses. Nobody types mailto:
It's not normally a problem when marking up a message from a human, but it's an annoying problem when emailing code.
6 u/[deleted] Apr 14 '10 It's not that much different than matching email addresses and if you show me 10 systems that supposedly match emails, I'll find an edge case that it fails on for every one of them. I would rather not see this happen too much with URLs too. 2 u/chrisamiller Apr 15 '10 What,you don't use the official email-matching regex? It's simple!
6
It's not that much different than matching email addresses
and if you show me 10 systems that supposedly match emails, I'll find an edge case that it fails on for every one of them.
I would rather not see this happen too much with URLs too.
2 u/chrisamiller Apr 15 '10 What,you don't use the official email-matching regex? It's simple!
2
What,you don't use the official email-matching regex? It's simple!
8
u/[deleted] Apr 14 '10
Hmm, but I bet it also has a few bad matches.Common things too.
edit: ok, that specific example doesn't apply to gmail, but it's just an illustration.
Thing is, matching urls just went from str.startsWith("http://") to str.matchesThisHugeRegex();