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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -