Regular Expressions 101

Community Patterns

Match the {{arg}} symbol in HTML string

0

Regular Expression
ECMAScript (JavaScript)

/
<(.*)(?:\s[^>]*?)?>(?:{{)([^<]*?)<\/\1>([^<]*?<[\s\S]*?>[^>]*?)<(.*)(?:\s[^>]*?)?>([^<]*)(?:}})<\/\4>
/
gm

Description

no description available

Submitted by anonymous - 3 years ago