JSFiddle - React, Tailwind, and code Playground
by dream apple
HTML
<div>123</div>
JavaScript
const myRe = '';
const str = "<¥3> 已打入你的微信钱包\n你可以在<¥3>“微信-我-钱包”中查看并确认";
str.replace(myRe, function(match, p1, p2, offset, string) {
console.log(p1, p2, offset);
});