Stripping Part of the Text

Stripping Part of the Text

am 02.07.2007 19:19:51 von vunet.us

I want to strip email from the text. Some of my users may send me a
string:

str = "This is email 1: me@me.com and here is email 2: href="mailto:me@me.com">me@me.com"

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

am 03.07.2007 01:19:52 von exjxw.hannivoort

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@me.com and here is email 2: > href="mailto:me@me.com">me@me.com"

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)