Can someone explain to me when using regular expressions when a double backslash or single backslash needs to be used to escape a character?
A lot of references onli
\ Is also an escape character for string literals in c# so the first \ is escaping the second \ being passed to the method and the second one is escaping the . in the regex.
Use:
if (Regex.IsMatch(myString, @"SomeString\."))
If you want to avoid double escaping.