I have strings in the following format
_AUTO_(123,SomeString)
and I am trying to extract 123 from the above string using regex. The re
You don't need to escape the underscore (or, for that matter, the comma). Change your regex to:
@"_AUTO_\(?<number>(\d)+,"