fork(32) 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 reg = " String reg = \"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~#;:?/@&!\"'%*=¬.,-])(?=[^\\s]+$).{8,24}$\";";
  9. String corrupt=new String(reg.getBytes("ISO-8859-1"),"UTF-8");
  10. System.out.println(corrupt+": "+corrupt.charAt(74));
  11. System.out.println(reg+": "+reg.charAt(74));
  12. }
  13. }
Success #stdin #stdout 0.04s 213312KB
stdin
Standard input is empty
stdout
      String reg = "^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~#;:?/@&!"'%*=�.,-])(?=[^\s]+$).{8,24}$";: �
      String reg = "^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~#;:?/@&!"'%*=¬.,-])(?=[^\s]+$).{8,24}$";: ¬