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.
vunet.us [ Mo, 02 Juli 2007 19:19 ] [ ID #1757574 ]

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)
exjxw.hannivoort [ Di, 03 Juli 2007 01:19 ] [ ID #1758624 ]
Webserver » microsoft.public.inetserver.asp.general » Stripping Part of the Text

Vorheriges Thema: Get ASP-SessionID on the first page hit
Nächstes Thema: Saving page as html values