Regular Expressions 101

Community Patterns

Search Trailing Commas

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 - a year ago