Find and Replace in Notepad++ using Regular Expression

谁都会走 提交于 2019-12-18 12:38:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!