title: Javascript REGEX to take an array convert into string with {} each of the element
body: <p>In Javascript, I am trying to take an array and make it a string with curly braces with each word.</p>
  <p>Input: [&quot;apple&quot;, &quot;brand&quot;, &quot;title&quot;]</p>
  <p>Output should be: '{apple} {brand} {title}'</p>
  <p>I tried with JSON.stingify or toString() however couldn't get the expected output. I have no knowledge about regex.</p>
  <p>Later on I need to take '{apple} {brand} {title}' and convert back to array. Is there any way to accomplish this easily?</p>