Answers for "get first number in string C#"

C#
0

get first number in string C#

var input = "12985bwevgjb9812";
string firstDigit = new String(input.TakeWhile(Char.IsDigit).ToArray());
Posted by: Guest on September-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language