Regex for this {{mike}} {{michael}} {{jordan}} [duplicate]

In general you can go for this

\{\{(\w+)\}\}

It captures all the characters inside the double braces (without spaces, if you need space you can use [\w\s]* inside the braces)

Leave a Comment