JavaScript Regex Stop na primeira partida

// Adding a ? on a quantifier (?, * or +) makes it non-greedy.
/location="(.*?)"/
Obedient Oyster