Ekstrak nomor dari string

var num = txt.replace(/[^0-9]/g,'');
Disgusted Dogfish