Find and replace first digit with notepad++

find and replacenotepadregex

I have a bunch of numbers like this:

001
001
002
002
002
003
003
003
003

all the way up to 100. using the search and replace
is there a way to just change the first number so that i could get it up to 1000 faster?

I am also open to any other ideas.

Best Answer

Is there a way to just change the first number?

  • Menu "Search" > "Replace" (or Ctrl + H)

  • Set "Find what" to [0-9]([0-9])([0-9])

  • Set "Replace with" to 1\1\2

  • Enable "Regular expression"

  • Click "Replace All"

Image

Before:

001
001
002
002
002
003
003
003
003 

After:

101
101
102
102
102
103
103
103
103

Further reading

Related Question