Codice PHP:
function xtractNums(str){
            var array = 
str.match(/\d+/g);
            return array[
1];
        }