by Edmontonian · 12y ago · 0 comments
(.*)+\1
would match "ABAB", or "ABCABC", etc."\2" would match the second capture group, e.x.
(.*)(.*)\2\1
would match "ABBA", or "AABBBBAA", etc. (.*)\1+
Would also match "ABABAB", for example.(AB|O|OR)+ dictates that the last letter of the first row has to be A or O
[^ABRC]+ makes it so that the lower right square can't be B therefore the upper right square can't be A