How to replace all the occurrences of
<a href="http://localhost:4000/disease/description/{a random text}"></a>
So here I want to add target="_bank" to all the anchor tags which has the url 'http://localhost:4000/disease/description/*'.I put start because it indicates a random text.
I tried like this
var text = data.replace(/ href="http://localhost:4000/disease/description/*/g,'href="http://localhost:4000/disease/description/* target="_blank"');
But this doesnt work.Can anyone please suggest me help.Thanks.