Regular Expressions 101

Community Patterns

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 - 6 months ago