🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #29199

Re: Netscape 4 hitting the streets

#29199
From: Christopher B. Browne
Date: Sat, 11 Jan 1997 00:00
44 lines
2284 bytes
On 11 Jan 1997 18:54:19 -0500, Justin Sheehy <dworkin@k2.ccs.neu.edu> posted:
>>>>>> "Ron" == Ron Newman <rnewman@cybercom.net> writes:
>Ron> Why not?  The regular expression http://[^ \t\n\]+ should
>Ron> unambiguously pick out all http URLs.

>Just looking for whitespace isn't good enough.

>I'm sure, for example, you've seen URLs like:
><http://www.ccs.neu.edu/>
>or
>"http://www.ccs.neu.edu"
>or, I could end a sentence with one, by asking you to go to
>http://www.ccs.neu.edu.

The *terminator* of the regex should be one of the following:
  a: White space
  b: ">"
  c: A doublequote" - e.g. `"'
  d: A single quote:  "'"
  e: A period.

Ideally, one should take the data including terminator, and strip off the
terminator.  This handles the following:

The URL for something is http://www.ccs.neu.edu.

The proper URL for this is:
   http://www.ccs.neu.edu
 
I've seen SLRN interpret this sort of thing as
   http://www.ccs.neu.edu.
which certainly doesn't work.

Apparently there's an RFC that indicates that the "correct" way of
describing a URL in news looks like <http://www.ccs.neu.edu>, which is
nicely unambiguous to match using a regex.
-- 
Christopher B. Browne, cbbrowne@unicomp.net, chris_browne@sdt.com
"When you say 'I wrote a program that crashed Windows', people just stare at
you blankly and say 'Hey, I got those with the system, *for free*" 
  - Linus Torvalds

Technical Details
Message-ID: <slrn5dge57.2eg.cbbrowne@wolfe.brownes.org>
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
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5dge57.2eg.cbbrowne@wolfe.brownes.org>
Subject: Re: Netscape 4 hitting the streets
Date: Sat, 11 Jan 1997 00:00:00 +0000
From: cbbrowne@wolfe.brownes.org (Christopher B. Browne)
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>
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: 209315414
Organization: Unicomp Technologies International Corporation
Reply-to: cbbrowne@unicomp.net
Newsgroups: news.software.readers