title: How to parse and extract CSS selectors as strings?
body: <p>What is the simplest way to extract css selectors as strings?</p>
  
  <p>Given this as input:</p>
  
  <pre><code>#article{width:690px;overflow:hidden}
  #article h2:first-child a{text-decoration:none}
  #works .project p:last-child{margin-top:20px;font-size:13px}
  #works .project img, #works .info img{width:680px;min-height:400px;border:1px dotted #ccc;margin-bottom:40px}
  </code></pre>
  
  <p>How can I get a list of selectors such as this:</p>
  
  <pre><code>var selectors = ['#article','#article h2:first-child a','#works .project p:last-child','#works .project img']
  </code></pre>