How to find and replace using regex to replace by group (At least in VSCode) use () to capture the group in find replace with that group using $<number-of-group> Example Original: "JOV":{"Dir": {"":"1011011"}} Find: {"":"([01]+)"} Replace: "$1" Product: "JOV":{"Dir": "1011011"}