Find and Replace in Notepad++ using Regular Expression
问题 I got a numeric list. One number per line. I want to replace all numbers with a specific pattern. For example, my file look like this: 1 2 3 4 I want to replace it so as to look like the following using a regexp in Notepad++: [1], [2], [3], .... 回答1: Find what: ([0-9]+) Replace with: [\1], 来源: https://stackoverflow.com/questions/5840897/find-and-replace-in-notepad-using-regular-expression