Regular Expressions 101

Community Patterns

string-format-1

0

Regular Expression
ECMAScript (JavaScript)

/
({})\1|[{](|\s*?[^\s{}]+?\s*?|\s*?\S+?\(.*?\)\s*?|\s*?['][^']+?[']\s*?|\s*?["][^"]+?["]\s*?|\s*?["][^"]+?["]\.\S+?\(.*?\)\s*?|\s*?['][^']+?[']\.\S+?\(.*?\)\s*?)(?:!(\S+?))?[}]
/
g

Description

no description available

Submitted by anonymous - 6 years ago