notepad2

Add characters to the end of a string using regex notepad2

生来就可爱ヽ(ⅴ<●) 提交于 2020-04-05 09:30:34
问题 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 the end of each line? For example: String query = "" + " select column1 + " , column2 + " , column3 + " from table ); //want to add \n" at the end of each line 回答1: Find: (.)$ Replace: \1\\n" Here's a good regex tutorial. 回答2: Maybe something like this ctrl + H mark regular expressions option search for $ - this means "end