All,
I'm beside myself with this one. Any help would be appreciated!
I have a string like:
[var0, var1, var2, var3]
I need to remove everything past the first comma (no matter how many other comma's there are, but including the comma) but only between the brackets as there's more to this string. So the above example would look like this when done:
[var0]
Then I need to remove the brackets around var0 (which I can do!)
The first part is difficult for me, because var0 is never the same length. And I don't know how many comma's (with variables) there will be. I could only have var0 and var1, or var0-var10 for all I know.
Any thoughts on how I could solve this?