I'm a bit stuck with the following code that i wrote to match hyperlinks in a HTML string.
The pattern actually matches the first anchor but I need it to identify the second anchor in there as well, i know that the pattern is defined that way. Please let me know how i intersect in the group to leave out "/a> " just this word. Or please let me know if there is a better way to do this.
Srikkanth Mohanasundaram wrote:I'm trying to match the anchors.
That part, I figured out. What I could not figure out from your description was... Did you want only the <a> tag? Did you also want the </a> tag too? Or did you only want what was between the two tags?
It would be helpful if you showed us some sample data, along with what you expect extracted from the same data.
Joined: Feb 07, 2007
My output should be something like this
What i need actually is to match the whole anchor tag, but this code actually doesn't know to find the end of an anchor tag and it goes ahead to match it too.I just want to say it that "/a>" this is the end of the pattern.