Javascript – Match values in-between braces
I have a string like this: "hello %{name} good %{middle} bye". I'm trying to find an effective way to extract out the values in-between the braces, so ideally I would end up with an array of ["name", "middle"]. Using match…