[Tool: Sublime Text 3]
Hello I'm looking for some help with regex, I have very little experience with it so I'm hoping for some help.
I plan to use the regex to help me replace my json file with lots of data in it (over 6k LOC).
I'm looking for a regex that matches the string inside an array in the following json, and split those results (seen in End result):
["Cleric, Ritual Caster, Wizard"]
End result:
["Cleric", "Ritual Caster", "Wizard"]
List of classes (don't know if it would help in the regex): Bard, Cleric, Druid, Paladin, Ranger, Sorcerer, Warlock, Wizard
*Edit: I forgot to add what tool I'm using, using Sublime Text 3 atm, but I can use JavaScript to rewrite the new data and copypasta over my current json file.
Removed invalid json, I'm only looking to edit/fix the array.
"class": ["Ritual Caster"]is it absolute or"class": [any single entry]?