- package cn.outofmemory.snippets.core;
- public class Main {
- public static void main(String[] argv) throws Exception {
- System.out.println("abasdfasdf1 2wasdfasdf9_8asdfasdfz asdfasdfyx7".replaceAll("\\\\D", ""));
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/290920136251.html
来源: http://www.codesnippet.cn/detail/290920136251.html