Okay, i have this case where comma are inside parenthesis, I want to match the commas that are only outside the parenthesis.
Input : color-stop(50%,rgb(0,0,0)), color-stop(51%,rgb(0,0,0)), color-stop(100%,rgb(0,0,0)))
Output(i'm looking for):color-stop(50%,rgb(0,0,0))**,** color-stop(51%,rgb(0,0,0))**,** color-stop(100%,rgb(0,0,0)))
And this is my regex:-
/(?![^(]*)),/g
The sad part is, it doesn't work when there is a multiple parenthesis :(
See Question&Answers more detail:os