Js regularly matches the src value in img in span.

< span data-v-19af1fd2= "" contenteditable= "false" class= "face-box" >

Apr.26,2022

var str = '<span data-v-19af1fd2="" contenteditable="false" class="face-box"><img data-v-19af1fd2="" src="/static/img/emoji/2.gif" width="100%" height="100%"></span>';
var a = str.match('(?<=src=").[^"]*')
console.log(a[0]) // /static/img/emoji/2.gif

<img [^>]*src="([^"]+)"

let str= "< span data-v-19af1fd2="contenteditable=" false "class=" face-box ">


</span>';
var srcRe = /[ ]+src\=\"([^"]*)\"/;
if (srcRe.test(span)) {
    var src = RegExp.$1;
    console.log(src);
}
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-1b3081b-e26c.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-1b3081b-e26c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?