I'm trying to get css selector + styles with a regexp but there is always a problem...
So do you have an idea (exemple ?) of a regexp do get this:
array(
[0] => "div {
background: red;
color: blue;
}",
[1] => "section {
/* comment with bad idea } <- this break regexp [^}]+ */
background: blue;
color: red;
}"
);
fom this css:
div {
background: red;
color: blue;
}
section {
/* comment with bad idea } <- this break regexp [^}]+ */
background: blue;
color: red;
}
Thx