How to count of sub-string occurrences? [duplicate]

Regex.Matches(input, "OU=").Count

Leave a Comment