Gnus development mailing list
 help / color / mirror / Atom feed
* on matching more naked URLs in articles
@ 2000-01-22 14:32 Steinar Bang
  2000-04-21 12:17 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Steinar Bang @ 2000-01-22 14:32 UTC (permalink / raw)


Before I waste time on it: has anyone looked into changing
gnus-button-url-regexp into matching naked URLs without a protocol
field?  Ie. URLs like dodrt.dod.no, vvv.no, imdb.com etc.

And is there a way to getting the changed gnus-button-url-regexp into
gnus-button-alist without restarting Gnus?  (I suspect that ever
longer and more cryptic regexps require quick cycles of changing and
trying)

Todays gnus-button-url-regexp is 
 "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?\\([-a-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,]\\|\\w\\)+\\([-a-zA-Z0-9_=#$@~`%&*+|\\/]\\|\\w\\)"

I'm not sure where the best place to change it is.  My first attempt
would be something like this:
 "\\b\\(\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?\\([-a-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,]\\|\\w\\)+\\([-a-zA-Z0-9_=#$@~`%&*+|\\/]\\|\\w\\)\\|\\([A-Za-z]+\\.\\)+\\(com\\|org\\|no\\|se\\)\\(/[A-Za-z0-9/]+\\)?\\)"

I'm not sure if the top level domain should be from a fixed list, or
if we just should match [A-Za-z]?  Are there efficiency reasons for
doing it either way?

Most URLs exchanged this way seems to be .com URLs or URLs in the
native national domain of a particular newsgroup.




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-04-29 20:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-22 14:32 on matching more naked URLs in articles Steinar Bang
2000-04-21 12:17 ` Lars Magne Ingebrigtsen
2000-04-21 13:51   ` Steinar Bang
2000-04-21 18:43     ` Lars Magne Ingebrigtsen
2000-04-21 20:31       ` Steinar Bang
2000-04-21 22:24       ` David Aspinwall
2000-04-22 12:13         ` Lars Magne Ingebrigtsen
2000-04-26 18:22           ` Karl Kleinpaste
2000-04-27  8:35             ` Steinar Bang
2000-04-27 10:17               ` Toby Speight
2000-04-29 14:27             ` Thomas Skogestad
2000-04-29 20:36             ` François Pinard
     [not found]           ` <vxkog6w4t9y.fsf@mesquite.charcoal <3166007242308746@oakhurst.penguinpowered.com>
2000-04-29 15:44             ` Karl EICHWALDER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).