Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?!"[^"]*)(,\s*[\]}])(?![^"]*")
/
gm

Description

Don't rely on this for any serious business, though.

Submitted by Basix - 3 years ago