Regular Expressions 101

Library entries

Parse JSON key value pair

Vote

0

Regular Expression
pcre

/
(?:\"|\')(?<key>[\w\d]+)(?:\"|\')(?:\:\s*)(?:\"|\')(?<value>[\w\[\]]*)(?:\"|\')
/
g

Description

Loading markdown...
Submitted by Kostas Trichas - 7 years ago