Re: Makeing automatic tags for email and www.
| From: | Gabriel Peugnet | Date: | Wed, 15 Oct 2003 09:16:14 +0000 |
| Subject: | Re: Makeing automatic tags for email and www. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166175@lists.php.net to get a copy of this message | ||
Thanks Eugene.
I'm afraid I didn't explain my self as I should.
What I want is this to be automaticaly generated in a text.
For example, in:
"Some text some text some text some text my@mail.com some text some text
some text and www.mywebpage.com some text some text some text
another@mail.com some text some text some text ."
I have to stract the pieces of string of mail and www to convert in links
and this is the tedious part.
Would be nice if were some smart function that recognizes it and make the
links, like Outlook Express (what I'm useing now) or other applications,
that automaticaly makes it.
"Gabriel Peugnet" <gabriel@peugnet.cjb.net> escribió en el mensaje
news:20031015084144.85095.qmail@pb1.pair.com...
> Does some body knows if there is a function that adds tags to a string
when
> it is an email or a web address?
>
> I want to convert
> my@email.com
> into
> (a href='mailto:my@email.com') my@email.com (/a)
>
> (I sustitued tags with parenthesis)
>
> It's a little tedious makeing the function.
>
> Gabriel.