Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(^|[^{]){{\s*?(?<dynamicValue>[\S]+?)\s*?}}([^}]|$)
/
gm

Description

This regex can be used to get values from the valid mustache syntax i.e double floral brackets

Submitted by PranomVignesh<pranomvignesh@gmail.com> - 4 years ago