-6

My String is -> {{mike}} {{michael}} {{jordan}}

Give me result like this

  • group 1 -> mike
  • group 2 -> michael
  • group 3 -> jordan
Behrang
  • 46,888
  • 25
  • 118
  • 160
Aryan Moradi
  • 127
  • 5

1 Answers1

1

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)

Monster Brain
  • 1,950
  • 18
  • 28