Talk:Count occurrences of a substring

From Rosetta Code
Revision as of 17:07, 16 June 2011 by rosettacode>Ledrug (Created page with "== More specific? == What happens when there are more than one way to match? Say you have string "aBaBaBa" and want to find <i>non-overlapping</i> "aBa"s, you could say both (aB...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

More specific?

What happens when there are more than one way to match? Say you have string "aBaBaBa" and want to find non-overlapping "aBa"s, you could say both (aBa)B(aBa) and aB(aBa)Ba, where brackets denote the found matches, are valid. --Ledrug 17:07, 16 June 2011 (UTC)