Regular Expressions 101

Community Patterns

Match all parts of the valid JSON

0

Regular Expression
PCRE (PHP <7.3)

/
(?:"(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?|([\{\}\[\]]))
/
g

Description

Submitted by Pumbaa80 - 10 years ago