Having the next string
{ Hello, testing, hi stack overflow, how is it going }
Match every word inside of curly brackets without the comma.
I tried this:
\{(.*)\} which take all, commas and brackets included.
\{\w+\} I thought this will work for words but it wont, why?
Updated
Tried this but I got null, why?
    str = "{ Hello, testing, hi stack overflow, how is it going }";
    str2 = str.match("\{(.*?)\}")[1]; // Taking the second group
    console.log(str2);
    console.log(str2.match("/w+"));
 
    