var typ = "Cha 6.5te 32 kh"; alert(typ.match(/\d{2,}/));
function getDig(str) { return str.split(/Cha [\.\d]*te | kh/)[1]; } var typ = "Cha 6.5te 32 kh"; var typ2 = "Cha 12.5te 100 kh"; alert(getDig(typ)) alert(getDig(typ2))
var typ = "Cha 12.5te 32 kh"; alert(typ.match(/\d{2,}(?=\s+kh)/));