I am trying to modify keys in my JSON file (around 60 MB) by removing spaces if there are any. I use Sublime Text Editor to load and edit large JSONs.
Currently, I am using the following expression to find quoted strings with spaces:
"([a-zA-Z])+([\s])+([a-zA-Z]*)":
Finds: "First Name":
Then I use the following expression to replace space with underscore with the matched string:
"$1_$3":
Result: "t_Name":
Expected: "First_Name":
I am not able to figure out why I am not able to capture the first word with $1. Any help would be appreciated. Thanks!
Note: There are around 15000 different keys with spaces in the JSON.