Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,现在我的数字很少
4723 4102 2160 8502
我想0在中间添加一个,将它们替换为:
0
47023 41002 21060 85002
所以我所做的是匹配:
^(\d{2})(\d{2})
替换:
$10$2
但这并没有给我正确的结果。想知道如何逃避0介于$1和之间$2?非常感谢。
$1
$2
我猜正则表达式解析器与$10. 试试${1}0${2}。测试:http ://regex101.com/r/xT3zT7
$10
${1}0${2}