Re: Prop: make URL's clickable
- From: Carlos Morgado <chbm chbm nu>
- To: Balsa List <balsa-list gnome org>
- Subject: Re: Prop: make URL's clickable
- Date: Sun, 13 May 2001 22:57:46 +0100
Em Dom, 13 Mai 2001 20:41:54 Julian M Catchen escreveu:
> Ok, now for some regex magic:
>
> ((ht|f)tps?://[^][:blank:]>\r\n]+[^]>\\)( \r\n)]+)
>
> Catches all of the cases you suggest (although you may be able to improve
> upon this bad boy).
>
> (http://www.linux.org)
> <http://www.balsa.net>
> [http://www.slashdot.org]
> http://foo.bar.some)host/
> (http://foo.bar.some)host/)
> (http://www.freshmeat.net) (many spaces)
>
>
indeed it does. i must say i'm nearly incapable of reading that regex
without having the good book with me (many times of perlre :)) but i'll
believe you :)
btw, http://foo.bar.some)host/ *is* invalid :)
--
Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey: 0x1FC57F0A
http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5 7F0A
[ rm vs .sig - rm 1 .sig 0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]