标签: regex replace
我想在数字后面添加字符:
输入示例:
(1SomeText;.Hello (2SomeOtherText;.Hello (3SomeAnotherText;.Hello
输出应为:
(1,'SomeText;.Hello (2,'SomeOtherText;.Hello (3,'SomeAnotherText;.Hello
答案 0 :(得分:2)
使用以下正则表达式进行搜索:
^\((\d+)
并替换:
($1,'