Several days ago, someone at the forum has asked how to extract the text from a hyperlink and preserve other HTML tags. It sound interesting, I did some research but can't find the direct solution. So, I decide to put together a simple regular expression to execute the task.
Regular Expression: (<[a|A][^>]*>|</[a|A]>)
Explanation:
<[a|A][^>]*> -- Remove <a href="a.aspx">
</[a|A]> -- Remove </a> tag
Example 1:
Result: <div>ysatech</div>
Test this regular expression here.