Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE2 (PHP >=7.3)

/
(?(DEFINE)(?P<space>[\s\n]*))(?(DEFINE)(?P<string>("[^"]*")))(?(DEFINE)(?P<integer>\d+))(?(DEFINE)(?P<PValue>((?P>string)|(?P>integer))))(?(DEFINE)(?P<PSV>(?P>space):(?P>space)))(?(DEFINE)(?P<PSP>(?P>space),(?P>space)))(?(DEFINE)(?P<PName>(?P>string))(?>(?P>PSV)))(?(DEFINE)(?P<property>(?P>PName)(?>(?P>PSV))(?P>PValue)(?>(?P>PSP)?)))"progressive"(?P>PSV)\[(?P>space)({(?P>property)*}(?P>PSP)?)*]}
/
gm

Description

Json Object

Submitted by anonymous - 3 years ago