in reply to Re^2: detecting URLs and turning them into links
in thread detecting URLs and turning them into links
I maintain the #perl6 irc logs and URLs are automatically linkified using this regex:
qr/\b$RE{URI}{HTTP}(?:#[\w_%:-]+)?\b/
and it works fairly well. I guess about 99% or URLs are handled correctly, and one half of the 1% failures are due to my rather naive handling of anchors.
Though I have to admit that "my" chatters are mostly geeks who paste URLs with leading http:// (and I ignore other URLs).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: detecting URLs and turning them into links
by polettix (Vicar) on Aug 24, 2007 at 08:50 UTC | |
by moritz (Cardinal) on Aug 24, 2007 at 09:15 UTC |