Hi guys
I am using Links for several different functions on my new site. I could really use your help with some regular expressions which I need to enable me to run a newsletter archive...
www.ten-tenths.com/newsletter/
I have the whole thing up and running, but I need to manually edit my newsletter after I have mailed it (using a third party script) so that all http:// and mailto: links are 'live'
What I really need is to be able to adapt the regular expression, which I currently use in sub site_html_detailed to convert a line break into a <br>, so that it will create a hyperlink in the right place.
example:
The newsletter contains the following: <http://www.ten-tenths.com/>
I want to output: <a href="http://www.ten-tenths.com/">http://www.ten-tenths.com/</a>
Is this possible ?
Currently I use this expression:
$rec{'Body'} =~ s,\n,<br>,g;
I would very much appreciated any help or assistance which anyone can offer as i'm useless with these things
I've searched this forum several times but have yet to find someone who has asked a similar question. The best I could come up with was this:
$rec{'Body'} =~ s,<http://,<a href="http://,g;
$rec{'Body'} =~ s,<mailto:,<a href="mailto:,g;
$rec{'Body'} =~ s,>,</a>,g;
But then I got stuck!
Help!
------------------
Craig Antill
10 Tenths Links Directory - www.Ten-Tenths.com/links/
10 Tenths Multimedia Archive - www.Ten-Tenths.com/downloads/multimedia/
10 Tenths Newsletter Archive - www.Ten-Tenths.com/newsletter/
10 Tenths Toon Archive - www.Ten-Tenths.com/toons/
Parc Ferme Magazine - www.parcferme.com/
THE Directory - www.gardenbuildings.com/
I am using Links for several different functions on my new site. I could really use your help with some regular expressions which I need to enable me to run a newsletter archive...
www.ten-tenths.com/newsletter/
I have the whole thing up and running, but I need to manually edit my newsletter after I have mailed it (using a third party script) so that all http:// and mailto: links are 'live'
What I really need is to be able to adapt the regular expression, which I currently use in sub site_html_detailed to convert a line break into a <br>, so that it will create a hyperlink in the right place.
example:
The newsletter contains the following: <http://www.ten-tenths.com/>
I want to output: <a href="http://www.ten-tenths.com/">http://www.ten-tenths.com/</a>
Is this possible ?
Currently I use this expression:
$rec{'Body'} =~ s,\n,<br>,g;
I would very much appreciated any help or assistance which anyone can offer as i'm useless with these things

$rec{'Body'} =~ s,<http://,<a href="http://,g;
$rec{'Body'} =~ s,<mailto:,<a href="mailto:,g;
$rec{'Body'} =~ s,>,</a>,g;
But then I got stuck!

Help!
------------------
Craig Antill
10 Tenths Links Directory - www.Ten-Tenths.com/links/
10 Tenths Multimedia Archive - www.Ten-Tenths.com/downloads/multimedia/
10 Tenths Newsletter Archive - www.Ten-Tenths.com/newsletter/
10 Tenths Toon Archive - www.Ten-Tenths.com/toons/
Parc Ferme Magazine - www.parcferme.com/
THE Directory - www.gardenbuildings.com/