Regular Expressions 101

Community Patterns

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 - 2 months ago (Last modified 2 months ago)