Many thanks for this nice solution.
Especially I like the way you search for equal substrings: /([ -~]{3,})(?:.*?\1){$n}(?{ $d{$1}++})(*FAIL)/s;
I will use a lot of your ideas in my solution ...
In reply to Re^4: Divide a list of string into substrings (updated)
by Anonymous Monk
in thread Divide a list of string into substrings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |