Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(\,[\n|\s]*\])|(\,[\n|\s]*\))
/
g

Description

Regex used for finding trailing commas. Use for troubleshooting PHP 7.2 Codes

Submitted by anonymous - 2 years ago