title: How to slice particular values from a string using regular expression in JavaScript or Java
body: <p>How do I slice, and get only string values excluding characters inside {} braces. </p>
  
  <p>I'm able to get characters inside curly braces, but how to get contents outside the curly braces?</p>
  
  <p>I have a string like this:</p>
  
  <blockquote>
    <p>name is {response.vital.name} and disease is {response.vital.some} and drug is {response.vital.dis}</p>
  </blockquote>
  
  <p>I want output array like this:</p>
  
  <blockquote>
    <p>["the name is","and disease is","and drug is"]</p>
  </blockquote>