title: groovy list indexOf
body: <p>If I have a list with following elements</p>
  
  <pre><code>list[0] = "blach blah blah"
  list[1] = "SELECT something"
  list[2] = "some more text"
  list[3] = "some more text"
  </code></pre>
  
  <p>How can I find the index of where the string starts with SELECT. </p>
  
  <p>I can do <code>list.indexOf("SELECT something");</code></p>
  
  <p>But this is a dynamic list. <code>SELECT something</code> wont always be <code>SELECT something</code>. it could be <code>SELECT somethingelse</code> or anything but first word will always be <code>SELECT</code>. </p>
  
  <p>Is there a way to apply regex to the indexOf search?</p>