Regular Expressions 101

Community Patterns

JSON KEY VALUE

-2

Regular Expression
PCRE (PHP <7.3)

/
"key"[ :]+((?=\[)\[[^]]*\]|(?=\{)\{[^\}]*\}|\"[^"]*\")
/

Description

Get key value in json string

Submitted by Marcio Paiva Barbosa - 9 years ago