So in microsoft visual studio I have a string that is compiled into a regex. My string is “#(\d+(.\d+)?)=(\d+(.\d+)?)”. I cannot compile my program because I get an error saying that \d is a unrecognized escape character. How do I tell it to shut up and let me regex like a pro?
Share
Begin your string with
@, that causes the compiler to leave (almost) all characters alone, unescaped (the exception is", which can be escaped as""):