You don’t need to escape the underscore (or, for that matter, the comma). Change your regex to:
@"_AUTO_\(?<number>(\d)+,"
More Related Contents:
- How to write a regular expression in c# to match internal links to articles in Wikipedia? [duplicate]
- Extract title from name in c# [closed]
- How to cut up a string from an input file with Regex or String Split, C#?
- How to Parse using Regex in C# [closed]
- C# regex replace of numbers and units
- How do I extract text that lies between parentheses (round brackets)?
- Escape Special Character in Regex
- Replace first occurrence of pattern in a string [duplicate]
- Regex to strip line comments from C#
- split a comma-separated string with both quoted and unquoted strings [duplicate]
- C#, regular expressions : how to parse comma-separated values, where some values might be quoted strings themselves containing commas
- C# Regex for Guid
- C# Regex Split – everything inside square brackets
- Check for special characters (/*-+_@&$#%) in a string?
- return only Digits 0-9 from a String
- Count regex replaces (C#)
- Standalone numbers Regex?
- Regex replace multiple groups
- Finding quoted strings with escaped quotes in C# using a regular expression
- Regex: Repeated capturing groups
- Why doesn’t $ in .NET multiline regular expressions match CRLF?
- Using Directory.GetFiles with a regex in C#?
- C# regex pattern to extract urls from given string – not full html urls but bare links as well
- Regex Non-Greedy (Lazy)
- How to extract decimal number from string in C#
- C# System.RegEx matches LF when it should not
- Regex for matching a character, but not when it’s enclosed in square bracket
- Replace non-numeric with empty string
- Regular expressions C# – is it possible to extract matches while matching?
- Parsing formatted string