I’m wondering if it’s possible to use regex to find all occurrences of a repeating string in another string
For a simple example find aaa in aaaaaaaaaaaaaaa
If I’ve counted properly it happens 13 times so an answer that finds 13 rather than 5 occourances would be good.
Another example
abcabc in abcabcabcabc where it repeats 3 times