I'm trying to match a string using this RegEx: /href=.+"/g
var str= '<a href="https://www.url.com" target="_blank">';
console.log(str.match(/href=.+"/g));
however, I only want it to match this much: href="https://www.url.com"
Instead, it's matching this much: href="https://www.url.com" target="_blank"