Answers for "get digit from string c#"

C#
2

c# get number from string

// You can use .NET methods to find specific numbers or characters from strings
// Below is the IndexOf method:
  string example = "abc 123";

  int numbers = example.IndexOf("123");
  int totalNumbers = example[numbers];
Posted by: Guest on May-18-2021
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 "get digit from string c#"

C# Answers by Framework

Browse Popular Code Answers by Language