Answers for "count ocuurence of a character in string c#"

C#
-1

find character from string c# count

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

count number of specific characters in string c#

string source = "/once/upon/a/time/";
int count = 0;
foreach (char c in source) 
  if (c == '/') count++;
Posted by: Guest on November-15-2021

Code answers related to "count ocuurence of a character in string c#"

C# Answers by Framework

Browse Popular Code Answers by Language