I want to find-and-replace a sentence, while keeping several segments
Is there a way in Notepad++ to retain on or more 开发者_JAVA技巧entire strings, and place them somewhere else?
To Clarify, what I want to do is search for a sentence such as
QuestionAnswers[qnumber 35]="Fruit", "Plants"
and replace with
NewFormatQuestion = [FirstAnswer="Fruit", SecondAnswer="Plants"]
This isn't the actual code, but it represents what I want to do.
If you know regular expressions, you can use the regex setting in the find and replace tool to do what you want (I think). I don't know regex so I can't help on that front.
精彩评论