Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java - extracting email addresses from a web page

Posted on 2013-05-25
3
Medium Priority
?
295 Views
Last Modified: 2013-06-02
Hi

In Java - If I supply a URL to a method, how do I return a list of all the email addresses contained in that page? .net .com and .org .edu .HTML or .PHP, .ASP, others?

Thanks
0
Comment
Question by:beavoid
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 39196844
If it's a straightforward page, you can use the jdk classes:

http://augustli.wordpress.com/2010/08/07/extracting-links-from-html-using-swing-htmleditorkit/
0
 

Author Closing Comment

by:beavoid
ID: 39213824
Thanks, as always
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39214006
:)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question