Jquery uses attr to get the src, of the picture and ask how to extract the numbers inside.

how do I extract 19

from it?
Mar.20,2021

var str ='.. / imgs/ico19.png';
str.match (/ hr class= /) [0];


Don't think too much, it's just a string, ok, ico and.


you can find a point after getting the string, then find a non-numeric character from the point forward, and finally intercept the string in between.

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-1b3285f-2be34.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-1b3285f-2be34.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?