我有这个测试:
11814591,安德森·罗杰里奥·卡莱托,125.73、123.06、17.50
11270013,安德烈·亚历山大·莫拉斯,120.07、117.66、15.71
11143569,安德烈·安德拉德·达·莫塔,132.03,
129.06、14.52
哪里有 [,\n] 我想只替换 [, ],但我找不到 [, ] 并且 [\n] 每次只能得到一个。
有人可以帮助我吗?
最佳答案
这样就可以了。在 replace 字段中,它是一个空白字符。
Find: (?<=,)\n
Replace:
输出
11814591, Anderson Rogerio Carleto, 125.73, 123.06, 17.50
11270013, Andre Alexandre Moraes, 120.07, 117.66, 15.71
11143569, Andre Andrade da Mota, 132.03, 129.06, 14.52
关于regex - 如何在Notepad++中查找和替换特定字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23420156/