Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^a:\d{1,4}:{(i:\d+;s:\d+:\"\w+\";)+}$
/

Description

Check for correctly formatted array of this type: array('a', 'bb', 'ccccc',)

Submitted by oneperfectsunrise - 10 years ago