Regular Expressions 101

Community Patterns

regex 1 or more json array

2

Regular Expression
PCRE (PHP <7.3)

/
(?:^{\s*|\s*,\s*)"([^\[\]]+)"\s*:\s*(\[[^\]]+\])(?:\s*}\s*|\s*)
/
g

Description

Loading markdown...
Submitted by me - 8 years ago