get first number in string C#

var input = "12985bwevgjb9812";
string firstDigit = new String(input.TakeWhile(Char.IsDigit).ToArray());

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
get first 5 words from string c# C# GET FIRST CHARACTER FROM STRING c# first char in stirng how to get a first letter ofa string in C# access first letter of string c# access first letter of string c#\ take first character of string c# how to get first word from string in c# c# take first characters of string c# get first letters of string get first words of string c# c# string get first 10 characters c# how to print first character from string c get first 4 characters of string c# C# get first char in strng c# get first characters of string c# get the first letter of a string how to find the first number of a string in c# how to get the first char in a string c# read first letter of int in C# how to take first letter of string in c# get the first number in a number in c# howcan i get first for character from string c# how to find first character in a string in c# c# get first char of a string string get first letter c# how to check first character number in c# how to find out the first letter in a string c# how to get first char of a string in c# how to get the first character of a string in c# c# get first letters of words in string c# get first string get first char from string c# c# get first number of characters from string c# code to get first character of string c# get first character of string as string how to get the first letter in a string C# finding the first letter in a string c# c# check first character of string c# string get first character c# get first letter in string take first letters of a string c# c# string get first c# get first 10 character of string take the first number from a string c# c# get first3 numbers from string how to get first 10 character from string in c# c# get first char of string how to get first letter of string c# get first string character c# get first character of string in c# get first char of string c# getting first letter of a string c# c# string get first char c# first letter of string c# find first character in string c# string[] take first 4 get first n character of string c# how add first of string something in csharp get the first letter of a string c# get first letter of a string c# how to get first character of a string in c# c# take first character of string get first char in string c# c# get first letter of string get first character from string c# c# how to get first characters of string c# how to get first character of string how to get first letter of string in c# get first string c# c# get number at start of string c# method to find first item in array of strings c# get first character of string string get first character c# c# get first word of string find first or default c# get first character of string c# substring get first char of a string c# get first character string c# check first character of string c# return the number in a string c# how to get the first character of a string c# get first part of string regex c# extract only number in string c# get number from string c# C# get first 3 letter in string get the first word in string in c# get string first character c# get first letter of string c# c# get first integer from string get first character in string c# check the first letter of a string c# get first character of string c# c# select first n of string get first number in string c# how to get first word of string how to get the first number in a string c# regex GET NUMBERS of string c# get numbers in string c# get first number in string C#
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source