I'm trying to find and replace all instances of a double quote in a C# string using regex, but can't quite seem to grasp the answer, here is what I have so far:
private string checkEscapeChars(string s)
{
s = Regex.Replace(s, @"[""]", String.Empty);
return s;
}
Now, that runs okay, but lets say I have a string "this is my "Sample string"
I want to get rid of the " before Sample. Will the above work for that? Or will it find and replace all instances of matching double quotes, rather than single double quotes?