I'm attempting to modify some strings in a json in Notepad++ by adding a new line with some alternate text. For example, the input for one part of the document would be
"type": "apples_oranges_one",
"attribute": "bananas",
"type": "tomatoes_beans_celery",
"attribute": "bannanas",
and afterwards I would like the result to be
"type: "apples_oranges_one",
"type_alt": "strawberries_oranges_two",
"attribute": "bannanas",
"type": "tomatoes_beans_celery",
"attribute": "bannanas",
etc.
I have used Regex to accomplish this by using find/replace to find
"type":"apples_oranges_one",
and replace it with the string
"type": "apples_oranges_one", \n "type_alt": "strawberries_oranges_two",
Is there a way to do this and just append to "type": "apples_oranges_one", without having to replace the whole string? I know it seems like a small difference but it would make what I'm doing much more efficient.