procmail
[Top] [All Lists]

Re: Procmail condition to capture URLs

1998-04-03 18:37:39


On Fri, 3 Apr 1998, era eriksson wrote:

On Fri, 3 Apr 1998 12:06:40 +0200 (MET DST), Ralph SOBEK
<sobek(_at_)irit(_dot_)fr> wrote:
 > * ()\/http://[^ <>:)]*
 > Any improvements?

Given the observation that URL:s very rarely end in punctuation, while
people sometimes write URL:s with punctuation after them, you might
want to require the last captured character to be alphabetic.

How about additional protocols such as ftp://, https://, etc? 
(news, mailto, gopher?)

A good note here.

Whenever someone wants to type

...And it is described at http://www.foo.com/, and so blah blah...

Better to put 

...And it is described at http://www.foo.com/ , and so blah blah...

This is better IMO, or for some people.

Punctuation doesn't belong on the URL unless it belongs on the URL.

Or as a last resort, just use HTML itself in e-mail.