C# Regex Examples and Basics - QA With Experts
qawithexperts.com › article › c-sharpFeb 17, 2021 · Regex class is used to represent the regular expression in C#, so for example, if you want to check for zero of more white spaces, you can have regex as below // Create a pattern for zero or more whitespace sequence // * = watch 0 or more precedence // \s = to find any whitespace string pattern = @"\s*"; // Create a Regex Regex rg = new Regex(pattern);