dahngeek
2/13/2017 - 9:12 PM

regex match, match with an preceding option

regex match, match with an preceding option

var matchCode = codigo.match(/(?codigo de lista:)([\d|,]{2,})/); //obtener el codigo.
var codigo = matchCode[1];



//Two or more digits
var matchNumber = m2.match(/([\d|,]){2,}/); //obtener el digito.
//matchNumber[0]