title: I want to extract text before second dot(.) using regexp function from string like :
body: <p>I want to extract text before second dot(.) from string like:</p>
  <pre><code>Input - XYZ.ABC.MNO.CZ 
  Output- XYZ.ABC
  Input - AWQ.QA
  Output- AWQ.QA
  </code></pre>