-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thursday, October 18, 2001 at 10:54:12 PM , 1ns0mn1a wrote about "extracting URLs from message's body":
> Can anybody give me a suggestion (or better: a full fledged > macro ;-)) about a macro which can extract the hyperlinks from > a received message body and put them in the body of the reply > message? Macro, I don't thinks there is one, however here's a regexp: (?is)(http://(.*\.)(.*)\/?^\s|ftp://(.*\.)(.*)\/?^\s|www.(.*)^\s) Example template: %QUOTES="%SETPATTREGEXP=""(?is)(http://(.*\.)(.*)\/?^\s|%- ftp://(.*\.)(.*)\/?^\s|www.(.*)\/?^\s)"%- "%REGEXPBLINDMATCH=""%TEXT""%- %SUBPATT=""0""" PS: template might need some tinkering, but I think it's quite ok; I think I will probably make it better tomorrow, as the obvious problem is that, if the text of a mail does not contain any URL, there will be no quoted text on reply... - -- "Love your country but never trust its government." ______________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: Member of the PGP-Basics, Encryption Help Team iD8DBQE7zfK08WBGNj3ut+0RAjOQAKCeBAFFXoaHJQP0ln1XQVHme7I0egCg2YnA OiqX9MEJfr4JIxQjLbWxib0= =1fD5 -----END PGP SIGNATURE----- -- ______________________________________________________ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
