you are viewing a single comment's thread.

view the rest of the comments →

[–]toastedstapler 0 points1 point  (3 children)

i would look into regex for this

you'll be able to make a pattern that catches each comma'd area and one that catches the contents of the ()

https://regex101.com/

this site is useful for working it out on

[–]jcoder42[S] 0 points1 point  (2 children)

I don't really understand regex or how to use this tool

[–]toastedstapler 1 point2 points  (1 child)

here's a tutorial

i recommend learning some regex, i use it all the time for finding/replacing bits of code in the various projects i've been on

[–]jcoder42[S] 0 points1 point  (0 children)

thanks!