Have a regular expression that I can't quite get my head around. I need to remove invalidate links like the one below...

<a href="javascript: alert(\'blah\');" onClick="alert(\'blah\')">Bad Link</a>'

A validate link would look like this...

<a href="http://www.hotmail.com">Good Link</a>

I believe I have the regex for removing validate links:

str.replace(/<a href="[^">]+">/gi,'')
// result on validate link: Good Link</a>

Any help would be much appreciated.