aspose file tools
The moose likes Java in General and the fly likes Regular expression to find anchor tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Regular expression to find anchor tag" Watch "Regular expression to find anchor tag" New topic
Author

Regular expression to find anchor tag

seena mathew
Greenhorn

Joined: Jun 14, 2009
Posts: 18
I am trying to match an anchor tag using regular expression. I am new to regular expression and no matter what or how many times I have gone through regular expression the end result is that the pattern is not working.

Examples to match:





The pattern above is not picking up the full tag.
Any suggestion where the issue is ?
seena mathew
Greenhorn

Joined: Jun 14, 2009
Posts: 18
Got it working by modifying the pattern at http://www.coderanch.com/t/508917/java/java/Regex-find-URL-anchor-tag#2300082





 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Regular expression to find anchor tag
 
Similar Threads
question : retailer code must contain only 2 alphabets and 3 numbers i.e AB123
regular expression help
How to find only those urls ending in "pdf", with no duplicates?
ReplaceAll punctuation in a string....
java.util.Matcher help please!