您将如何使用正则表达式或 javascript/jQuery 中的替代形式在元素之间插入子字符串?
例如我有以下字符串:
This is a string 015 with numbers 1486453 randomly 10 inserted between words 0954
如果我的正则表达式要查找所有数字,则结果如下:
This is a string <span>015</span> with numbers <span>1486453</span> randomly <span>10</span> inserted between words <span>0954</span>