Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
<a href="http://abc.com/abc.htm" style="color:#005F9A;">I need it</a>
How can i get "I need it" sentence? I want use regular expression...
Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
<a href="http://abc.com/abc.htm" style="color:#005F9A;">I need it</a>
How can i get "I need it" sentence? I want use regular expression...
Here's the regex pattern that you can use to extract what you want:
(?<=\<a\shref=.*?\>).*?(?=\<\/a\>)