What is the equivalent of PHP's preg_quote?
<p>What is the equivalent of PHP's <a href="http://www.php.net/manual/en/function.preg-quote.php" rel="nofollow">preg_quote</a>?</p>

<p>This is as far as I have gotten for creating a method that extracts text from a string:</p>

<pre><code>    public static string f_get_string_between(string text, string start, string end)
    {
        //both these attempts below throw an unrecognized escape sequence error
        //start = "\Q"+start+"\E";
        //end = "\Q"+end+"\E"; 

        Regex regex = new Regex(start + "(.*?)" + end);
        var v = regex.Match(text);
        text = v.Groups[1].ToString();
        return text;
    }
</code></pre>
