Stripping Part of the Text
I want to strip email from the text. Some of my users may send me a
string:
str = "This is email 1: me [at] me.com and here is email 2: <a
href="mailto:me [at] me.com">me [at] me.com</a>"
How do I parse the string to get email address only?
I know I may use instr() to determine if email address exists, but
please, give me a hint on how to handle it next.
Thanks.
Re: Stripping Part of the Text
wrote on 02 jul 2007 in microsoft.public.inetserver.asp.general:
> I want to strip email from the text. Some of my users may send me a
> string:
>
> str = "This is email 1: me [at] me.com and here is email 2: <a
> href="mailto:me [at] me.com">me [at] me.com</a>"
I do not believe you, a "" delimited string containing single " s?
What do you mean bij "send me a string"?
> How do I parse the string to get email address only?
What string? [see above]
> I know I may use instr() to determine if email address exists, but
> please, give me a hint on how to handle it next.
Use regex.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)