karthick
karthick

Reputation: 12176

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?

Upvotes: 1

Views: 110

Answers (2)

Attila
Attila

Reputation: 3406

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:
Ctrl + F -> Replace -> Regular expression

Find: ^\".*$

Replace: $0"

Upvotes: 2

Joey
Joey

Reputation: 354824

You can usually just replace

(?<=^").*

by

$0"

Upvotes: 4

Related Questions