title: Check if array contains part of a string in Swift?
body: <p>I have an array containing a number of strings. I have used <code>contains()</code> (see below) to check if a certain string exists in the array however I would like to check if part of a string is in the array?</p>
  
  <pre><code>itemsArray = ["Google, Goodbye, Go, Hello"]
  
  searchToSearch = "go"
  
  if contains(itemsArray, stringToSearch) {
      NSLog("Term Exists")
  }
  else {
      NSLog("Can't find term")
  }
  </code></pre>
  
  <p>The above code simply checks if a value is present within the array in its entirety however I would like to find <code>"Google, Google and Go"</code></p>