1>.matches(String regex)方法
作用:告知此字符串是否匹配給定的正則表達式。
2>.split(String regex)方法
作用:根據給定正則表達式的匹配拆分此字符串。
3>.replaceAll(String regex,String replacenent)方法
作用:使用給定的replacement替換此字符串所有匹配給定的正則表達式的子字符串。
4>.匹配正確的數字

用法如下:
~~~
String str = "xxxxxxxxxxx";
Boolean b = str.matches("正則表達式");
System.out.println(b);
~~~