title: Logback: replacing 10 digit number by ******** and last two digit
body: <p>I use the following in my pattern(logback.xml) to replace 10 digit numbers in my log.</p>
  
  <pre><code>%replace(%msg){'\d{10}','**********'}
  </code></pre>
  
  <p>One problem with this approach is, it also matches first 10 digits of 11 digit number. 
   Is there a way to match exactly 10 digits numbers. </p>
  
  <p>Now the bigger problem is somehow I need to display the last two digits of this 10 digit number.</p>