in reply to Re: Regex matching on grid alignment
in thread Regex matching on grid alignment

Actually it needs branch-reset , which I remember from Finding repeat sequences., so like
m{ (?| (.)\1\1(.)\1\1 |(.)\1\1... |.(.)\1\1.. |..(.)\1\1. |...(.)\1\1 ){4} ## 6 x 4 }x;

Generating (and testing) this regex left up to the OP (hopefully you can see the relation between the various numbers)

Replies are listed 'Best First'.
Re^3: Regex matching on grid alignment
by Anonymous Monk on Sep 08, 2013 at 22:56 UTC
    :) perl before 5.10 (before branch reset available ) would need () counting like (.)\1\1(.)\2\2 |(.)\3\3... |.(.)\4\4.. |..(.)\5\5. |...(.)\6\6