-6

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

Give me result like this

  • group 1 -> mike
  • group 2 -> michael
  • group 3 -> jordan
Behrang
  • 44,452
  • 23
  • 114
  • 153
Aryan Moradi
  • 129
  • 5

1 Answers1

0

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,798
  • 19
  • 28