I need a regex to find the contents of the hrefs from these a tags :
This will do it nicely. http://jsfiddle.net/grantk/cvBae/3/
var str = 'delete' var patt = /
delete