Forum Moderators: coopster

Message Too Old, No Replies

Regular Expressions

Cut off email

         

orion_rus

8:23 am on Jun 29, 2005 (gmt 0)

10+ Year Member



Hello world i have a html file, and i need to analyze it for emails in it
often string looks like this:
<a href='mailto:mail@example.ru'>SOME TEXT</a>
i need to cut off this mail and text
Can somebody help me?
p.s. may be somebody can give me a good tutorial?
Thanks in advance

[edited by: jatar_k at 4:32 pm (utc) on June 29, 2005]
[edit reason] generalized email [/edit]

coopster

1:39 pm on Jun 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you are going to cut off the email and text, why not just get rid of the whole <a> element? A regular expression is probably your best bet here.