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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
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: 20
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: 20
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://aspose.com/file-tools
 
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
ReplaceAll punctuation in a string....
How to find only those urls ending in "pdf", with no duplicates?
java.util.Matcher help please!