<<< Date Index >>>     <<< Thread Index >>>

Re: urlview



* luke@xxxxxxxxxxxxxxx <luke@xxxxxxxxxxxxxxx> [29-06-2005 00:45]:

> I'm having problems getting urlview to parse for urls.
> 
> I have an email with the following link, but the REGEXP according to the man
> page for urlview, doesn't seem to include it fully.
> 
> REGEXP (((https?|ftp|gopher)://|(mailto|file|news):)[^???
> <>"]+|(www|web|w3).[-a-z0-9.]+)[^??? .,;<>":]
> 
> URL: 
> 'http://news.com.com/Sun+to+buy+integration+outfit+SeeBeyond/2100-1014_3-5766116.html?tag=nefd.top'

I don't use urlview, but when I read your post, I noticed that mutt
correctly colored the above URL.  So, I figured, maybe the regexp for
coloring URLS from my muttrc may help you out:

color  body  brightyellow  default "(https?|ftp|gopher|finger)://([^"'"'"' 
\t\r\n)>.,!?&]|[.,!?][^"'"'"' \t\r\n)>.,!?&]|&([^g]|$)|&g([^t]|$)|&gt([^;]|$))+"

(sorry for the long line)

(also apologies to the brilliant mind that came up with this regexp,
but whose name I forgot..  thanks anyway)

Hope this can be of help to you,

-- 
René Clerc                      - (rene@xxxxxxxx) - PGP: 0x9ACE0AC7

This is not a spam.  You receive this message because you are on.
a list of email addresses I have bought.

Attachment: pgpU2omAnMgUR.pgp
Description: PGP signature