title: Get the actual value of the field by reversing the existing applied regex?
body: <p>I have applied regex on my field to show only last 4 digits. I am using below regex which is replacing all digits to * except last 4 digits.</p>
  
  <pre><code>var str = ratingTdText.replace(/\d(?=\d{4})/g, "*");
  </code></pre>
  
  <p>I want to do another thing in that part i.e. On Click to get the actual value of that field. scenario is as mentioned below</p>
  
  <p>Field value is 829812983 after applying regex it is converting it to *****2983. In the next part On Click to get the actual field value i.e. 829812983.</p>
  
  <p>JSFiddle link is below</p>
  
  <p><a href="http://jsfiddle.net/sme7c/263/" rel="nofollow noreferrer">JSFiddle</a></p>
  
  <p>Is there any option to reverse the regex? </p>
  
  <p><strong>I do not want to store data in any hidden field.</strong></p>