procmail
[Top] [All Lists]

Re: Procmail condition to capture URLs

1998-04-04 14:02:48
Ralph Sobek asked:

Does anybody have a good procmail condition to capture URLs?  For the
moment I am using:

* ()\/http://[^ <>:)]*

Any improvements?

Even for HTTP this doesn't always catch the entire URL:
colons are used for port specifications, and I have also seen
parentheses in directory or file names already - look at URLs
like
        <http://www.eleves.ens.fr:8080/cgi-bin/fortune>
or
        <http://www.vandale.nl/(noframes)/current/>.
Maybe quotation marks could be included as delimiters,
though?

/HW

<Prev in Thread] Current Thread [Next in Thread>