I am unable to tell Regex to ignore any escape sequences.
Here is a sample code:
string input = "?"; foreach (Match m in Regex.Matches(input, "?")) { ... }
But when it is executed, it throws the following error: parsing "?" - The quantifier {x, y} following it.
I just want to "?" for processing as a string.
Thanks.
EDIT: I also tried:
foreach (Match m in Regex.Matches(input, "\?")) { ... }
Which tells me that this is not recognized as a valid escape sequence.
I also tried:
foreach (Match m in Regex.Matches(input, "\x3f")) { ... }
source share