Article View: news.software.readers
Article #29266Re: Netscape 4 hitting the streets
From: Brad Templeton
Date: Sun, 12 Jan 1997 00:00
Date: Sun, 12 Jan 1997 00:00
46 lines
2531 bytes
2531 bytes
In article <vnd7mlir02t.fsf@k2.ccs.neu.edu>, >>> Why not? The regular expression http://[^ \t\n\]+ should >>> unambiguously pick out all http URLs. > >Brad> Not at all. What if I want to write an article about URLs, and >Brad> give examples of their syntax. What if I want to tell you: > >Brad> A URL can look like http://sitename/path > >Brad> I mean this literally, I am showing you the syntax. It's going >Brad> to turn it into a link, a false link. > >The correct way to put an URL into a document so that it will _always_ >be recognized is <URL:http://sitename/path>. > >Take everything between '<URL:' and '>', and there is no ambiguity. > >And if this is the _only_ allowed form, it wouldn't cause false links >like the one you wrote. > >Of course, almost nobody actually writes them this way, but... That's a huge 'but'. If it's hand composed, it will be very inconsistent. I know, I make my living from a system that decodes wireservice articles written by paid professional reporters who are told to write their articles with a consistent style and set of rules about how to insert this sort of alleged "tagging." They fail regularly. in fact, anybody reading this very thread with Netscape or another reader that tries to pull out the URLs based on a regular expression can see the problem. The regular expression above http://[^ is turned into a link, as is your example, and mine, and as would yours be if URL were a protocol. Or if you had written that '<http:' and '>' were the bounds. These patterns are a kludge, and they don't let you do anything but link to exposed URLs anyway. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Technical Details
Message-ID:
<5bc3cs$guv@fugue.clari.net>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> <rnewman-1101971004330001@mfd-dial6-4.cybercom.net> <5bag1e$11o@fugue.clari.net> <vnd7mlir02t.fsf@k2.ccs.neu.edu>Show Full Headers
Complete Article Headers
Message-ID: <5bc3cs$guv@fugue.clari.net> Subject: Re: Netscape 4 hitting the streets Date: Sun, 12 Jan 1997 00:00:00 +0000 From: brad@clari.net (Brad Templeton) References: <59rvoh$i5d@epimetheus.algonet.se> <rnewman-1101971004330001@mfd-dial6-4.cybercom.net> <5bag1e$11o@fugue.clari.net> <vnd7mlir02t.fsf@k2.ccs.neu.edu> 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: 209440113 X-original-newsgroups: office.clip.brad Organization: ClariNet Communications Corp. Newsgroups: news.software.readers