I am using this to decode delimit array string with comma:
formatted_string = re.sub('\s+', ', ', unknown_encoding_string[1:-1])
seems to work with this (noticed it still has comma behind but anyway it works)
unknown_encoding_string = "[-0.03833389 0.00832078 0.1206817 0.01020864
0.01418733 0.01334922 0.0180524 ]"
formatted_string = "-0.03833389, 0.00832078, 0.1206817, 0.01020864, 0.01418733, 0.01334922, 0.0180524,"
eg: https://pastebin.com/eSVj1K6Q
but not with this. in the front it has " ," which cause a problem.
unknown_encoding_string = "[ -0.03833389 0.00832078 -5.50815463e-02
2.86253393e-02 -1.66405290e-02 2.03181207e-02]"
formatted_string = ", -0.03833389, 0.00832078, -5.50815463e-02, 2.86253393e-02, -1.66405290e-02, 2.03181207e-02"
eg: https://pastebin.com/UjswSVSs
I want it delimited if possible nicely like this
"123,4342,54534"
Im using Python for this.
unknown_encoding_string[1:-1].strip()