Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
array\s*\(\s*([^)]*)\s*\)
/
gm

Description

In PHP scripts replace array() with short syntax []

Submitted by papi Jo - 7 months ago