So I have a coin flipping program that ouputs all results to a txt file. I was wondering how would i search the results so that I could pick out things like how many times a specific result was repeated in a row. For example if the results were
Heads
Tails
Heads
Tails
Tails
Tails
Then the search would tell me that there were three tails in a row.