1

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.

10
  • I don't understand the output you're after. Can you show what you would like 001 001 002 002 002 003 003 003 003.... to be replaced with?
    – Adam
    Nov 5, 2015 at 23:42
  • I'm sorry, I wanted to add "1" replacing the first number witch would be 101 101 102 102 102 102 and so on. Nov 5, 2015 at 23:45
  • So 001 001 002 002 002 003 003 003 003 would become 101 101 102 102 102 103 103 103 103? Or would it become 101 001 002 002 002 003 003 003 003?
    – Adam
    Nov 5, 2015 at 23:46
  • it would become 101 101 102 102 102 103 103 103 103 all the way up to 199. Nov 5, 2015 at 23:48
  • 1
    Search for a ^0 regex and replace it with 1.
    – SΛLVΘ
    Nov 6, 2015 at 0:29

1 Answer 1

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .