Hello all,
I am quite new to using regular expressions in javascript.
here is what i am trying to do.For a given string, i want to replace all hyperlinks contained within the string with the innerHTML of the link.

For example,I have this string..
<script language='javascript'>
       var str = 'This is a normal text. this is  a <a href="javascript:void(0);">Link(Click me)</a>.<br/>This is another <a href="http://www.google.com">link</a>';
using regex , i want to remove these hyperlinks such that the resulting output would be "This is a normal text.this is a Link(Click me).<br />This is another link"