Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get first number in string C#

var input = "12985bwevgjb9812";
string firstDigit = new String(input.TakeWhile(Char.IsDigit).ToArray());
 
PREVIOUS NEXT
Tagged: #number #string
ADD COMMENT
Topic
Name
8+1 =