http://qs321.pair.com?node_id=11118350


in reply to Re^3: Divide a list of string into substrings (updated)
in thread Divide a list of string into substrings

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 ...