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 Spring in Action this week in the Spring 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





 
 
subject: Regular expression to find anchor tag