I'm facing an issue with the code below where it currently only matches MN
. How can I modify it to also match KDMN
?
var str = ' New York Stock Exchange (NYSE) under the symbol "KDMN."';
var patt = new RegExp("symbol.+([A-Z]{2,5})");
var res = patt.exec(str);
console.log(res[1]);