[英]Regex find a line in notepad++
I have words like this in a file. 我在文件中有这样的单词。
"abc
"defgh
"ijklmno
"1234
"123
I am able to find the words by using this regexp ^\\".*$ 我可以使用此正则表达式^ \\“。* $查找单词。
I need to append another quote to the text so that the text becomes a quoted text. 我需要在文本上附加另一个引号,以使该文本成为带引号的文本。
How to achieve this? 如何实现呢?
You can usually just replace 您通常可以更换
(?<=^").*
by 通过
$0"
If your words always start at the beginning of the line you could record a macro and run it from the beginning to the end of the file. 如果您的单词总是从该行的开头开始,则可以记录一个宏,然后从文件的开头到结尾运行它。
Otherwise you can use regular expressions: 否则,您可以使用正则表达式:
In notepad++ v6.3.3 this worked for me: 在notepad ++ v6.3.3中,这对我有用:
Ctrl + F -> Replace -> Regular expression Ctrl + F->替换->正则表达式
Find: ^\\".*$
查找: ^\\".*$
Replace: $0"
替换: $0"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.