Regular Expressions 101

Library entries

simple json key value pair parser

Vote

0

Regular Expression
pcre

/
(?:\"|\')(?<key>[^"]*)(?:\"|\')(?=:)(?:\:\s*)(?:\"|\')?(?<value>true|false|[0-9a-zA-Z\+\-\,\.\$]*)
/
gm

Description

Loading markdown...
Submitted by amlang - 6 years ago