title: Hide some digit of user mobile no for security reason
body: <p>if u what to show any user Mobile on your website but as per security reason you are not display full Mobile No like  9305070207 you only show 93*****207.
  try this regex -:</p>
  
  <pre><code> var str="9305070207";
          var str1="9305070207";
          var formetNum = str.replace(/\d{8}$/,'')+str1.replace(/^\d{7}/,'*****');
          document.write(formetNum);
  </code></pre>
  
  <p>if any better way of this process please tell me . i improve my knowledge</p>