When js uses regular expressions to match img tags, the match does not match

in the project, use regular matching img tags in the article. There is obviously img in the string passed in, but it is empty with regular matching. Baidu has searched a lot of regular expressions matching pictures, but still can"t match them. imgReg = / ^ ( |\ / >)) | (src= [\"\ "]? ([^\"\"] *) [\"\ "?) $/ gi; this is the rule I found. Ask all the gods for help


can't I just match the tags? And make sure there's a path inside?
var r = / ^ $/ gi


<img[^>]*>
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-1e5518a-4530b.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-1e5518a-4530b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?