1. <script>
    2. var reg = /\d+/;
    3. var str = '214321441214';
    4. var arr = str.match(reg);
    5. console.log(arr);
    6. var reg1=/\d+?/
    7. var arr1=str.match(reg1);
    8. console.log(arr1);
    9. </script>