title: How to intersect String from an array of values
body: <p>I have one string and an array as below:</p>
  
  <pre><code>String matchingString='Test'
  def a1=['Testing','Developer','DBA','Test']
  
  def item = a1.contains(matchingString)
  
  println item;
  </code></pre>
  
  <p>If there is a match found then from a1 i have to intersect matchingString and push the new result to an array.</p>
  
  <p>Expected Result to be:</p>
  
  <pre><code>Result:['Testing','Developer','DBA']
  </code></pre>