一、java中的正则表达式匹配
if(Pattern.matches("[0-9]*","89")){ System.out.println("匹配"); }
二、String字符串的matches()匹配函数
三、js中的正则表达式匹配