I have the following code:
var string = "Este aqui é o valor do cliente 000.000.00 01";
var str_subs = "129.000.000 02";
string = string.replace(/\d\d\d\.\d\d\d\.\d\d \d\d/g, str_subs);
alert("Valor Original: " & ??????); -> No caso aqui eu deveria mostrar 000.000.00 01
alert("Valor Novo: " & str_subs);
I need to show the ORIGINAL value that replace found before changing, how should I proceed?