public static void main(String[] args) { String s1="aaa43543aa453453a"; String sq=s1.replaceAll("\\d", " "); System.out.println(sq);}