What is the equivalent of PHP preg_quote ?
This is how much I got to create a method that extracts text from a string:
public static string f_get_string_between(string text, string start, string end)
{
Regex regex = new Regex(start + "(.*?)" + end);
var v = regex.Match(text);
text = v.Groups[1].ToString();
return text;
}
source
share