title: Check if any element of array contains specified string in Groovy
body: <p>I found <a href="https://stackoverflow.com/questions/27069701/groovy-how-to-check-if-a-string-contains-any-element-of-an-array">this post</a> which describes how to compare two arrays against one another very well. However, if I have some input string given from user like "20394875apple29038475" or "i love apples" and I want to check if any of the strings in a string array are present in the user given string regardless of upper/lower case, how can i do this in groovy?</p>
  
  <p>Let's imagine the string array we are checking to have fruits like ("apple","banana","cherry").</p>
  
  <p>In this case we would return true because the substring "apple" is present in the user given string "20394875apple29038475"</p>
  
  <p>... I am thinking that the best way would be something like this?:</p>
  
  <pre><code>boolean fruitFound = false
  
  for (item in fruitArray){
      if(usrResponse.contains(item)){
          responseFound = true
      }
  </code></pre>