Getting the one and only e-mail address on a page using XPath

Adiga

New Member
I have been trying to extract an e-mail address from a website using XPath. There is only 1 email address on the entire page. Is there an easy way to reference that one e-mail address using XPath?something like: \[code\]//a/contains(@href,'@')\[/code\]I tried something similar to what I have posted above with no success, I'd appreciate any advice on a reliable way to pull e-mail address using Xpath. Assume there is only 1 e-mail address on the page with no identifying information other than a simple \[code\]<a href="mailto:[email protected]">\[/code\] tag.Thank you
 
Back
Top