Regular Expressions 101

Community Patterns

Smile

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(:|;){1}(\-|~)?(D|\)){1}$
/
gm

Description

Accepts : ':' and ';' for eyes Optional : '-' and '~' for nose Accepts : ')' and 'D' for mouth

Submitted by annickFro - a year ago