title: How to find a string between two other strings with regex?
body: <p>More or less obvious is : </p>
  
  <pre><code>\[start\](.*?)\[end\]
  </code></pre>
  
  <p>but that yields the [start] and [end] tag too.  How do you omit them?</p>
  
  <p>E.g.: <code>f("[somestartstring]result[someendstring]") == "result"</code></p>
  
  <p>UPDATE: the suggested answers are not working. My code is:</p>
  
  <pre><code>printfn "%s" (Regex.Match(@"[start]result[end]",
                            "\\[start\\](.*?)\\[end\\]").Groups.[0].Value)
  </code></pre>
  
  <p>but it still yields the surrounding start and end tags.</p>
  
  <p>My mistake is: the 0 index! Thank you.</p>