JAVA 正则表达式

String s="";

boolean b=s.marches("\\d{1,2}|100"); //只能输入2位数字,且<100

posted on 2012-09-15 17:31  J2ee攻城狮  阅读(105)  评论(0)    收藏  举报

导航