title: How to find all labels that contain string in neo4j
body: <p>Trying to get all nodes of a certain label type.  I have roots of multiple graphs that all have the same suffix in their labels.  For example, i have 3 nodes that all have <code>treeroot</code> at the end of their label.  So I might have <code>companytreeroot</code>, <code>buildingtreeroot</code>, nd <code>employeetreeroot</code> as 3 valid labels for 3 distinct nodes.  How would I get all nodes whose label has that pattern?</p>
  
  <p>I tried: </p>
  
  <pre><code>match (n) where '.*treeroot' in labels(n) return n
  </code></pre>
  
  <p>and </p>
  
  <pre><code>match (n) where 'treeroot' in labels(n) return n
  </code></pre>
  
  <p>but both return empty sets...</p>