fork(12) download
  1. class Main {
  2. public static void main (String[] args) throws java.lang.Exception {
  3. String string = ".\"'";
  4. System.out.println(string.replaceAll("(?!\")\\p{Punct}", ""));
  5. }
  6. }
  7.  
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
"