How to get a CSS selector in PHP? -


I am looking for a way to get a CSS selector in PHP. So say I have a string in PHP like

  # some [background color: #fff; float right; } // some comment}} # # some # some 2 div # some3 .someclass {float: left; Color: # 000; }  

Now I want to be able to get all the CSS selectors who have the property float in this case I #some # some2 div # With some3 .someclass as well as #something

It is not possible to work with regular expressions because now there is definitely a way to say when the selector is over it happens. Do you have any idea how can I get it?

is a library that parses CSS and gives you an object oriented to the CSS file. Method:


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -