title: What is the idiomatic scala way of finding, if a given string contains a given substring?
body: <p>I have two strings in scala and I want to find out, if the bigger string (<code>needle</code>) contains a smaller string (<code>haystack</code>).</p>
  
  <p>What I found is doing it with regexps and matches like this (<a href="https://stackoverflow.com/questions/3021813/how-to-check-whether-a-string-fully-matches-a-regex-in-scala">from this question</a>):</p>
  
  <p><code>needle.r.pattern.matcher(haystack).matches</code></p>
  
  <p>which is (1) grossly overcomplicated for such a simple problem, but more importantly, (2) doesn't work for me, because</p>
  
  <p><code>"needle".r.pattern.matcher("Finding needle in haystack").matches</code></p>
  
  <p>returns</p>
  
  <p><code>Boolean = false</code></p>