Regularly match the numbers before the text

Page A total of 12 records per page

matches "12". How do you write it?

Dec.10,2021

let str = ' 1 12 ';
str.match(/(\d+)/);
console.log(RegExp.$1) //12

str.match(/\d+(?=)/g);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e458f1-44383.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e458f1-44383.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?