I am trying to match some CSS properties. However, I cannot predict the order they will be in.
Example:
header p {
color:#f2f3ed;
background-color:#353535;
background-image: url(../images/dots.png);
}
However, I should also expect:
header p {
background-image: url(../images/dots.png);
background-color:#353535;
color:#f2f3ed;
}
And any other combination of these three properties. The web application we are building only gives me access to the preg_match
function.
Anyone know a way to match every possible combination of properties? I know exactly what the properties will be, I just do not know which order they will come in.
Saying that, I am trying to find a quicker solution than typing out every possible combination and separating it with |