title: How to create a new json using regex which is a subset of other json using javascript?
body: <p>For example, suppose my json looks  like this</p>
  
  <pre><code>{
    "post_new_visits": "Repeat",
    "post_new1_week": "Thursday",
    "post_new2_appt": "Weekday",
    "post_new3_site": "12:50AM",
    "post_new4_channel": "5.0",
    "pre_new2_appt": "Weekday",
    "pre_new3_site": "12:50AM",
    "pre_new4_channel": "5.0"
  }
  </code></pre>
  
  <p>I want a new JSON, which should only have "post*" key values, something like below, the output should be like this.</p>
  
  <pre><code>{
    "post_new_visits": "Repeat",
    "post_new1_week": "Thursday",
    "post_new2_appt": "Weekday",
    "post_new3_site": "12:50AM",
    "post_new4_channel": "5.0",
  }
  </code></pre>
  
  <p>is there any way I can achieve this?</p>