In a sort-of-duplicate, the answer was :
\[start\](.*?)\[end\]
but that yields the [start] and [end] tag too. How do you omit them?
E.g.: f("[somestartstring]result[someendstring]") == "result"
UPDATE: the suggested answers are not working. My code is:
printfn "%s" (Regex.Match(@"[start]result[end]",
"\\[start\\](.*?)\\[end\\]").Groups.[0].Value)
but it still yields the surrounding start and end tags.
My mistake is: the 0 index! Thank you.