Answers for "how to count characteres in a string in 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 "how to count characteres in a string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language