I am dealing with a string containing CSS properties and their values:
str = "filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000');
background: -webkit-linear-gradient(top, black, white);
animation-duration: 12s;";
I want to only match the properties themselves
properties = text.match(/[^;:]*:/g);
However, it also returns "progid:", is there a way to avoid this?