Notepad++ Replace regex match for same text plus appending character

后端 未结 3 910
我寻月下人不归
我寻月下人不归 2020-12-13 08:16

I have a file with text and numbers with a length of 5 (i.e. 12000, 11153, etc.). I want to append all of these numbers with a 0. So <

3条回答
  •  [愿得一人]
    2020-12-13 08:52

    You are very near to the answer! What you missed is a capturing group.

    Use this regex in "Find what" section:

    ([0-9]{5})

    In "Replace with", use this:

    \10

    The ( and ) represent a capturing group. This essentially means that you capture your number, and then replace it with the same followed by a zero.

提交回复
热议问题