title: How to extract a particular part of string and replace with the same extracted value but in different case - using java
body: <ol>
  <li>My Input <strong>t%60hiag%2Fra%2Cjan</strong></li>
  <li>I want this to be converted to <strong>t%60hiag%2fra%2cjan</strong></li>
  </ol>
  
  <p>I would like to replace %2F with %2f. i.e. any number between 0-9 followed by upper case alphabet from A-F should be converted to lower case alphabet.</p>
  
  <p>I was able to extract and replace with a generic string. But I need help in replacing the extracted string to lower case.</p>
  
  <pre><code>  private static String urlEncodeLowerCase(String stringInput)
    {
      stringInput = stringInput.replaceAll("%[0-9]{1}[A-F]{1}", "T");  
      return stringInput;
    }
  </code></pre>
  
  <p>Above code will extract and replace the extracted string with "T" but I want something similar</p>
  
  <pre><code>stringInput = stringInput.replaceAll("%[0-9]{1}[A-F]{1}", "%[0-9]{1}[A-Z]{1}".toLowerCase);  
  </code></pre>
  
  <p>Above code won't work. This is just to make you understand my requirement.</p>