Hello,
I am trying to replace spaces in brackes with ","
for example:
"NIST 800-171A": ["3.11.2[a] 3.11.2 3.11.2[c] 3.11.2[d] 3.11.2[e] 3.11.3[a] 3.11.3"],
Will be:
"NIST 800-171A": ["3.11.2[a]","3.11.2","3.11.2[c]","3.11.2[d]","3.11.2[e]","3.11.3[a]","3.11.3"],
There are other spaces in the lines before and after the closed brackets, but I do not want other spaces in the line to be effected. and if the brackets do not contain spaces then nothing changes
Another approach,
is to replace all spaces after a column, space , opening bracket which I think would be easier as follows:
: [
Thank you for your help in advance :)
What I have tried:
I tried many regex's using sed command, but my knowledge with sed is minimal.
A solution using Visual code studio would also work if possible.