title: Regex to Mask all but Last Two Digits of a Number of Specific Length
body: <p>I have a string where I am trying to mask ONLY a 10-digit number except for its last two. Looking for its regex value in Java for it.</p>
  
  <p>For all intent and purposes the string is "Godel1234567890Escher753951852456Bach7894561230" should get "GodelXXXXXXXX90Escher753951852456BachXXXXXXXX30".</p>
  
  <p>So far my regex value is <code>str.replaceAll("(?&lt;!\\d)\\d{10}(?!\\d)", XXXXXXXX)</code>
  This is able to get ONLY 10-digits, however I can't seem to find any way to exclude the last 2 digits. </p>