How to match the following two results with regular expressions? there can be anything inside the double parentheses.

there is a string

{{text}}sdkfje{{text}}321sd

how to match the following two results with regular expressions. There can be anything inside the parentheses

{{text}}
{{text}}

only one result can be matched with this, embarrassing ~
/ {{. +}} / g

Mar.05,2021

check the match

the rules are as follows:

{{[^{}]*}}

/ {{. +?}} / g Link description

Menu