title: Cypher: Concatenation and matching of strings obtained with UNWIND
body: <p>In a cypher query, I end up with a collection of strings. Then, for each of these strings, I would like to check whether they are a substring of a property of a set of nodes. I am trying to do the substring matching using regular expressions, like in the example:</p>
  
  <pre><code>MATCH (x:Company)
  WITH collect(DISTINCT x.name) AS all_company_names
  UNWIND all_company_names AS company_name
  MATCH (s:Division)
  WHERE s.name =~ company_name + '.*'
  RETURN s
  </code></pre>
  
  <p>However, the string concatenation gives me the following error: </p>
  
  <pre><code>Type mismatch: expected Collection&lt;Boolean&gt; but was String (line 5, column 32)
  </code></pre>
  
  <p>I wonder what does UNWIND return? Why what it returns can not be concatenated with a string? Or is there something else which is wrong with my query?</p>
  
  <p>Thanks!</p>