Answers for "how to get first character in c# in array"

C#
13

c# get first 5 characters of string

string result = str.Substring(0,5);
Posted by: Guest on August-20-2020
-1

c# get first word of string

var input = "Hello, World";
var output = Regex.Replace(input.Split()[0], @"[^0-9a-zA-Z\ ]+", "");
Posted by: Guest on September-25-2021

Code answers related to "how to get first character in c# in array"

C# Answers by Framework

Browse Popular Code Answers by Language