How would I count how many a's are in the following string:

abaacdeaabcda

    You could use [man]substr_count/man. If you want a count of each character, use [man]count_chars/man.

      Write a Reply...