第一题感觉可以这么写啊
let s = 'helloworld520helloworld1314dsajkdh5210';
let arr = s.match(/([0-9])\d+/g);
console.log(Math.max(...arr));