Regular Expressions 101

Library entries

parse unnecessary JSX braces

Vote

0

Regular Expression
javascript

/
(?<fullMatch>(?<prop>\w+\s*=\s*)({)(?<quote1>["'`])(?<string>[^"$'`{}]*)(?<quote2>["'`])(}))
/
gm

Description

Loading markdown...
Submitted by Zach Hardesty - 13 days ago