我想对Notepad++中的一个文件进行批量逐行替换,如下所示:
This is my line of text that I would like to replace
至
"This is my line of text that I would like to replace" +
我尝试了以下几种方法:
查找:^$
Replace:"\1" +
查找:^()$
Replace:"\1" +
查找:(^$)
Replace:"\1" +
有什么提示吗?提前感谢!
发布于 2011-11-08 23:47:26
尝试搜索^(.*)$
并替换为"\1" +
它与您的不同之处在于,它捕获了字符串开头和结尾之间的所有字符。您的正则表达式只会尝试捕获任何内容。
发布于 2011-11-08 23:49:49
试试这个:
Find: ^(.*?)$
Replace: "\1" +
发布于 2011-11-08 23:47:29
这应该是可行的:
查找并替换"\1" +
https://stackoverflow.com/questions/8053068
复制相似问题