Regular Expressions 101

Community Patterns

Worlde helper

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?=[a-z]*l)(?=[a-z]*k)(?=[a-z]*n)(?![a-z]*[rtuasgc])[a-z]{5}
/
gm

Description

simple, just adjust that: contains letters "l z n" (probably can be simplified but I dont know how) exlude anywhere "rtuasgc"

dictionary taken from wordle JS file

Submitted by anonymous - 2 years ago