fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. String url = "http://e...content-available-to-author-only...e.com/test?q=%.P%20some%20other%20Text";
  9. url = url.replaceAll("%(?![0-9a-fA-F]{2})", "%25");
  10. System.out.println(url);
  11. }
  12. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
http://e...content-available-to-author-only...e.com/test?q=%25.P%20some%20other%20Text