Elements elements = doc.select("span.st");
for (Element e : elements) {
out.println("<p>Text : " + e.text()+"</p>");
}
Element e
contains text with some email id in it. How to extract the maild
id from it. I have seen the Jsoup API doc which provides :matches(regex)
, but I didn't understand how to use it. I'm trying to use
^[a-zA-Z0-9_!#$%&’*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+$
which I found while googling.
Thank in advance for your help.