I have a problem with parsing Email addresses in .html files with
Java.
In html we have tags for defing email addresses:
<p>This is my email
<a href=mailto:test@...>Mail Me</a>
<a href=mailto:tmp@...>Click Here</a>
</p>
"Mail Me" and "Click here" become hyperlinks to the email addresses.
I want to write a java program which can parse email addresses and
then it prints them in command window.
For simpilicity sake, the input (.html file) is written in the
program like this:
public static void main (String[] text)
{
String strInput = new String("This is my email .... <a href =
mailto:....");
}
I do appriciate if anybody can help me or anybody can give me its
algorithm;