Answers for "count string symbols c#"

C#
-1

find character from string c# count

int count = Regex.Matches(test, "word").Count;
Posted by: Guest on December-02-2020
0

count number of specific characters in string c#

# cCopyusing System;
using System.Linq;

namespace get_first_char_of_string
{
    class Program
    {
        static void Main(string[] args)
        {
            string source = "/once/upon/a/time/";
            int count = source.Split('o').Length - 1; 
            Console.WriteLine(count);
        }
    }
}
Posted by: Guest on November-15-2021

Code answers related to "count string symbols c#"

C# Answers by Framework

Browse Popular Code Answers by Language