Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^a:\d+:{(i:\d+;)+}$
/

Description

Check for correctly formatted array of this type: array(1,2,3,)

Submitted by oneperfectsunrise - 10 years ago