Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-11-07 17:35
Flavor·PCRE2 (PHP)

/
^(?:.?|(..+?)\1+)$
/
gm
Open regex in editor

Description

All characters have to be the same

Matches non-primes

Submitted by nopeless | u/kattskill