Hi, I am trying to build a regular expression to extract the text inside the HTML tag as shown below. However I have limited skills in regular expressions, and I'm having trouble building the string.
How can I extract the text from this tag:
<a href="javascript:ProcessQuery('report_drilldown',145817)">text</a>
That is just a sample of the HTML source of the page. Basically, I need a regex string to match the "text" inside of the tag. Can anyone assist me with this? Thank you. I hope my question wasn't phrased too horribly...
UPDATE: Just for clarification, report_drilldown is absolute, but i don't really care if it's present in the regex as absolute or not. 145817 is a random 6 digit number that is actually a database id. "text" is just simple plain text, so it shouldn't be invalid HTML. Also, most people are saying that it's best to not use regex in this situation, so what would be best to use? Thanks so much!