how can use a regular expression to extract a links in a web page(suppose i get the html page as a text file) using java?
            Asked
            
        
        
            Active
            
        
            Viewed 233 times
        
    2 Answers
2
            
            
        This previously posted question should help you
How to use regular expressions to parse HTML in Java?
Essentially you should really look at using a HTML parser
1
            
            
        Agree that HTML parser will make your life easier if you can include it with your build - I've used Jericho HTML Parser for something similar in the past...
 
    
    
        chrismh
        
- 131
- 4
 
     
    