gpt4 book ai didi

regex - 如何在Notepad++中查找和替换特定字符?

转载 作者:行者123 更新时间:2023-12-02 01:50:00 26 4
gpt4 key购买 nike

我有这个测试: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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com