Stripping Part of the Text

V

vunet.us

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

str = "This is email 1: (e-mail address removed) and here is email 2: <a
href="mailto:[email protected]">[email protected]</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.
 
E

Evertjan.

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: (e-mail address removed) and here is email 2: <a
href="mailto:[email protected]">[email protected]</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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top