正则表达式

2018-08-24  本文已影响18人  wanTag
Pattern pattern = Pattern.compile("^[0-9]+$");
Pattern pattern = Pattern.compile("^[a-zA-Z]+$");
 Pattern pattern = Pattern.compile("^[\\u4E00-\\u9FA5]+$");
 Pattern pattern = Pattern.compile("^[\\u4e00-\\u9fa5a-zA-Z0-9]+$");
上一篇下一篇

猜你喜欢

热点阅读