Answers for "c# index of first number in string"

C#
2

how to find index of element in string with c#

string string1 = "A man i hurry just jumped on a tail of a dog and dog has bit him damagingly";
Console.WriteLine(string1.IndexOf("man"));
//output
2
Posted by: Guest on October-31-2021
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

Code answers related to "c# index of first number in string"

C# Answers by Framework

Browse Popular Code Answers by Language