Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

正则表达式查找"key":"value"对

Submitted by hippopie - 3 years ago