esquare
esquare

Reputation: 4275

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

Upvotes: 5

Views: 16606

Answers (1)

cnicutar
cnicutar

Reputation: 182639

Find what:

([0-9]+)

Replace with:

[\1],

Upvotes: 11

Related Questions