Regular Expressions 101

Library entries

parse array to object p1

Vote

1

Regular Expression
javascript

/
\s*(\[\s*\{)?\s*\S*.*\s*(\},\s*\{)?(\}\s*\])?
/
g

Description

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