fork(6) download
  1. public class Main {
  2. public static void main (String[] args) {
  3. String x = "@646646&";
  4. String z = x.replaceAll("(?:[^0-9]+)", "");
  5. System.out.println(z);
  6. }
  7. }
Success #stdin #stdout 0.06s 3359744KB
stdin
Standard input is empty
stdout
646646