My String is -> {{mike}} {{michael}} {{jordan}}
Give me result like this
- group 1 -> mike
- group 2 -> michael
- group 3 -> jordan
My String is -> {{mike}} {{michael}} {{jordan}}
Give me result like this
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)