On the problem of regular capture

var str="hello world"; correctly matches the output "hello [] world"

Mar.20,2021

var str='hello <img src="haha.png" alt=""/>world';
let exp = /^(\S+)\s?[<].*[alt="](.*?)["]\s*[\/>]\s*(\S+)$/;
let ret = str.match(exp);
str = ret[1]+'['+ret[2]+']'+ret[3];
console.log(str);
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-1b3deb9-2c3b2.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-1b3deb9-2c3b2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?