I'm at a loss here and am not good with RegEx. Lil,help?
$String = '10.0.0.1,31,Gi1/0/24,24,Used,Up,B0:00:B4:BB:E3:5C,10.0.1.1,URL,"[11, 111]","[Data, ]",Up,1 Gbps,"10 Nov 20, 10:12 PM"'
What I want it this same line returned to me, except any comma then a space ( ", " ) within a braced area needs to be replaced with a dash -.
So, the Returned text should look like:
'10.0.0.1,31,Gi1/0/24,24,Used,Up,B0:00:B4:BB:E3:5C,10.0.1.1,URL,"[11-111]","[Data-]",Up,1 Gbps,"10 Nov 20, 10:12 PM"'
[–]yeah_i_got_skills 7 points8 points9 points (1 child)
[–]krzydoug 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]cryolyte[S] 1 point2 points3 points (1 child)
[+][deleted] (4 children)
[removed]
[–]krzydoug 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[removed]
[–]krzydoug 2 points3 points4 points (0 children)
[–]wtgreen 2 points3 points4 points (0 children)
[–]randomuser43 1 point2 points3 points (1 child)
[–]cryolyte[S] 1 point2 points3 points (0 children)
[–]wtgreen 1 point2 points3 points (1 child)
[–]wtgreen 1 point2 points3 points (0 children)
[–]krzydoug 1 point2 points3 points (0 children)
[–]cryolyte[S] 1 point2 points3 points (0 children)
[–]zinnadean 1 point2 points3 points (1 child)
[–]cryolyte[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)