w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Insertion syntax for regex in Notepad++ or Perl

You will need a backreference here, meaning something which, in the replace part, will be equal to what you have matched.

Usually, the whole matched part is stored in the $0 backreference. (You can get $1 with a capture group too, and up to $2 with two capture groups, etc)

Back to your question, you could try this:

Find:

({,)([0-9][0-9],)

Replace by:

		$1 00$2

This will insert two tab characters before the part that matched {,[0-9][0-9], (or in other words, replace the part that matched by 2 tab characters and what you matched), then put the first captured part ({,) and then the space and double 0's and then the second captured part, the two digits and following comma.

regex101 demo





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.