📌  相关文章
📜  正则表达式从字符串中获取数字 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:06.458000             🧑  作者: Mango

代码示例3
const regex = /(12345)/gm;
const string = 'My id is 12345.';

console.log(string.replace(regex, '54321')) // My id is 54321.