Article View: news.software.readers
Article #29292Re: Netscape 4 hitting the streets
From: Lars Magne Ingebrigtsen
Date: Sun, 12 Jan 1997 00:00
Date: Sun, 12 Jan 1997 00:00
30 lines
2330 bytes
2330 bytes
Karl Kleinpaste <karl@jprc.com> writes: > Justin Sheehy <dworkin@k2.ccs.neu.edu> writes: > > That said, it still isn't that hard to write a decent regexp for > > this. (decent, not perfect. if someone has one that always works, > > please post it.) > > For all I know, this may embarrass Lars horribly, but you asked for > it. It's possible to confuse this, but it's tough. From Red Gnus > 0.80's gnus-art.el: > > (defcustom gnus-button-url-regexp "\\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\\)" Yeah, that regexp takes care of most URLs, but the main problem is when you have an URL that ends with a punctuation character -- like "http://whatever.com/thing:", for instance. The trailing ":" won't be considered part of the URL by this regexp. It's pretty rare -- the regexp correctly identifies more than 90% of the URLs (says a survey done by The Psychics Institute of Switzerland), and gives only a small number of false positives. That's still not good enough, in my opinion. On the other hand, I don't think this is a strong argument for moving to HTML in news. -- (domestic pets only, the antidote for overdose, milk.) larsi@ifi.uio.no * Lars Ingebrigtsen
Technical Details
Message-ID:
<m2pvzb624t.fsf@proletcult.slip.ifi.uio.no>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<59rvoh$i5d@epimetheus.algonet.se> <32dc574f.16481894@news.bctel.ca> <5b4r5h$r4c@fugue.clari.net> <5b76vc$4hb@bambam.soi.city.ac.uk> <5b7hl0$2of@fugue.clari.net> <rnewman-1101971004330001@mfd-dial6-4.cybercom.net> <vnd7mljsr84.fsf@k2.ccs.neu.edu> <vxku3on4qu3.fsf@pocari-sweat.jprc.com>Show Full Headers
Complete Article Headers
Message-ID: <m2pvzb624t.fsf@proletcult.slip.ifi.uio.no> Subject: Re: Netscape 4 hitting the streets Date: Sun, 12 Jan 1997 00:00:00 +0000 From: Lars Magne Ingebrigtsen <larsi@trym.ifi.uio.no> References: <59rvoh$i5d@epimetheus.algonet.se> <32dc574f.16481894@news.bctel.ca> <5b4r5h$r4c@fugue.clari.net> <5b76vc$4hb@bambam.soi.city.ac.uk> <5b7hl0$2of@fugue.clari.net> <rnewman-1101971004330001@mfd-dial6-4.cybercom.net> <vnd7mljsr84.fsf@k2.ccs.neu.edu> <vxku3on4qu3.fsf@pocari-sweat.jprc.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 209253870 Sender: larsi@proletcult.slip.ifi.uio.no X-face: &w!^oO<W.WBH]FsTP:P0f9X6M-ygaADlA_)eF$<UwQzj7:C=Gi<a?/_4$LX^@$Qq7-O&XHp Organization: Dept. of Informatics, University of Oslo, Norway Newsgroups: news.software.readers