Add characters to the end of a string using regex notepad2

前端 未结 5 1733
不知归路
不知归路 2020-12-28 22:46

I have a massive string (a SQL query..) that I have written out in notepad2. I\'m using Java, and I was just wondering if there was a fast and easy way to add something to

5条回答
  •  不知归路
    2020-12-28 23:19

    Maybe something like this

    1. ctrl + H
    2. mark regular expressions option
    3. search for $ - this means "end of line"
    4. replace with \\n"

    OR simpler

    1. select lines that you want to edit
    2. alt + M / same as edit->block->modify lines
    3. in append text to lines place \n"

提交回复
热议问题