c# - Regex find string variable -
how can find fo32p_dasf[0] = (string)"random string here";
regex.match? have problem using (string) within regex string.
because parentheses have special meaning in regex, need escape them backslash.
however, backslashes have meaning in c# strings, need escape escape.
square brackets have special meaning in regex, need escaping, , quotes need escaping, after that, end this:
var pattern = "fo32p_dasf\\[0\\] = \\(string\\)\".*\";";
Comments
Post a Comment