Answers for "how to get one digit in string c#"

C#
2

c# check if string is only letters and numbers

if (textVar.All(c => Char.IsLetterOrDigit(c))) {
    // String contains only letters & numbers
}
Posted by: Guest on May-19-2020
0

return every digit on a string c#

return Regex.Replace(input, @"[^0-9]+", "");
Posted by: Guest on November-27-2020

Code answers related to "how to get one digit in string c#"

C# Answers by Framework

Browse Popular Code Answers by Language