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 :(
Regex
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…