Does js regularly match characters that contain the $symbol?

such as the title: for example, if the string is "www $a $b $c kkk", the matching result will become [a _ line _ b _ r _ c]

.

currently contains a defect code (does not match "$a $b $c" correctly). The reason is that the matchReg match ends with a space, resulting in the omission of the last $c

var strMatch = "www $a $b $c kkk";
var matchReg = /\$.*?\s/gi;  // $(\s)
var newArray = strMatch.match(matchReg).map((item)=>{return item.replace(/\$|\s/gi,"")}); //$

how should I modify it?


var matchReg = /\ $. *? (\ s | $) / gi;


str.match(/\$(\S+)\s/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-1e9ca58-476d3.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-1e9ca58-476d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?