I have the following code:
var str = "141271999 243306211 172266710 172266710 172266710";
var regex = /[0-9]{9}/g; //Encontrar 9 números entre 0-9 e retornar todos valores (g).
var idsEncontrados = str.match(regex);
How can I configure my regex to disregard the duplicate values found by having my idsEncontrados
receive only the 141271999, 243306211, 172266710
values?