int i = Integer.parseInt("128hoge".replaceAll("\\D", ""));