I want to write a regular expression to match (Please note that I'm not concerned with the php functions and usage, my concern is regexp and I have given the clue of php to clarify the usage):
to match a rule if it contains the property "height" in it. What I have primarily written:
^.nav+(.*)+({)+(.*)
But I do not what should I write after that... And here is our subject:
.nav,[role~=navigation]{
clear:both;
background:lightgrey;
color:#5a5a5a;
border:1px solid #c6c6c6;
-o-border-radius:4px;
border-radius:4px
}
.nav:after,[role~=navigation]:after{
content:" ";
display:block;
height:0;
font-size:0;
clear:both;
visibility:hidden
}
.nav a,.nav a:visited,.nav button{
background:lightgrey;
color:#5a5a5a;
cursor:pointer;
padding:.25em 1em;
text-decoration:none;
cursor:pointer;
line-height:1.5;
border:0;
border-top:1px solid #c6c6c6;
-o-border-radius:0;
border-radius:0
}