Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?="_id"\s*:)(?&key_value) (?(DEFINE) (?<string_inner>(?<=["])(?>[^"\\]++|[\\].)++(?=["])) (?<string>["](?&string_inner)?+["]) (?<object>[{]\s*+(?&key_values)?+\s*+[}]) (?<array>\[\s*+(?&values)?+\s*+\]) (?<key_values>(?&key_value)(?>\s*+[,]\s*+(?&key_value))*+) (?<key_value>(?&string)\s*+[:]\s*+(?&value)) (?<number>[-]?+\d++(?>[.]\d++)?+(?>[Ee][+-]?+\d++)?+) (?<bool>true|false) (?<scalar>(?&bool)|(?&number)|(?&string)|null) (?<value>(?&scalar)|(?&object)|(?&array)) (?<values>(?&value)(?>\s*+[,]\s*+(?&value))*+) )
/
gmx

Description

no description available

Submitted by amlang - 9 years ago (Last modified 7 months ago)