title: How to split a string based on a word?
body: <p>I have a string in the below format</p>
  
  <pre><code>abc.xyz.*.*.{placeholder}
  </code></pre>
  
  <p>represents one or more words.
  I want the substring without <code>{placeholder}</code> in a separate string. i.e 
  <code>abc.xyz.</code>.</p>
  
  <p>Can anyone please let me know how can I achieve this?</p>