Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regular expression to find anchor tag

 
seena mathew
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it working by modifying the pattern at http://www.coderanch.com/t/508917/java/java/Regex-find-URL-anchor-tag#2300082





 
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!