title: Groovy: Using "in" operator for a list with a regexp inside
body: <p>Is there any way to use the "in" operator for a list with a regexp inside?</p>
  
  <pre><code>List myList = ["abc", "xyz", ~/a.+z/]
  
  assert ("abc" in myList) == true
  assert ("xyz" in myList) == true
  
  assert ("abz" in myList) == true
  assert ("aby" in myList) == false
  </code></pre>
  
  <p>Thanks for any help.</p>