title: regex pattern: split() vs find()
body: <p>I'm currently using this regex pattern = <code>"(?ius)[(?&lt;=\\s)]\\bgo\\b(?=\\s)"</code>.</p>
  
  <p>The purpose if to filter t-sql commands with the "go" as a delimiter.</p>
  
  <p>Example t-sql code:</p>
  
  <pre><code>select * from table1 go
  select * from table2
  go select * from table3
  </code></pre>
  
  <p><strong>The pattern works with the <code>split()</code> method, but it does not work with the <code>find()</code> method.</strong></p>
  
  <p>Example result with <code>split()</code> method:</p>
  
  <pre><code>select * from table1
  select * from table2
  select * from table3
  </code></pre>
  
  <p>Example result with <code>find()</code> method:</p>
  
  <pre><code>select * from table1 go
  select * from table2
  go select * from table3
  </code></pre>
  
  <p>It seams to have a problem when the "go" is at the end of the line or at the beginning. If the first "go" had a space after it, it works. I've already tried several things without any luck. In my case I really need to use the <code>find()</code> method, I can't just rely on split, because I need confirmation that the a "line" as a delimiter before doing the split.</p>