note
MeowChow
I don't think this works quite right. Compare the output from the following two runs:
<code>
@l = repeated('this dog a round', 'this dog a pound', 1, 3);
@l = repeated('this dog a round', 'this dog a pound', 1, 4);
</code>
<b>UPDATE</b>: Here's an 85-byte version that returns all the matches:
<code>
sub repeated {
($s,$_,$m,$n)=@_;my@p;for$i($m..$n){$s=~$1&&push@p,$&while/\b(?=((\w+\b ?){$i}))/g}@p
}
</code>
<pre>
<a href="/index.pl?node=MeowChow"> MeowChow </a>
s aamecha.s a..a\u$&owag.print</pre>
79364
79444