Regular Expressions 101

Community Patterns

1...34567...881

Zuma Game

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^((?>(.)(?:\2{2,}|\2(?1)?\2\2?|(?1)?\2{2}))+)$
/
gm

Description

Tests if a Zuma board can be cleared completely

Submitted by wheatup - 3 months ago (Last modified 3 months ago)