简体   繁体   中英

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],
....

Find what:

([0-9]+)

Replace with:

[\1],

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM