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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -