I'm trying to make this regex a string literal, and although i can get it to match in an online evaluator can't quite get it in visual studio. I know its a problem with my escape characters, any help would be appreciated.
string pattern = " ^getelementbyid\("(.*?)\" "
Trying to make this a string literal, valid regex in regex evaluator (regex101.com)
Regex regex = new Regex(pattern);
"in your string literal as\".