分辨率问题+手机号的正则表达式

来源:互联网 发布:360压缩 mac 编辑:程序博客网 时间:2024/06/05 10:38
public static boolean isMobileNO(String mobiles) {    Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(14[57])|(17[0])|(17[7])|(18[0,0-9]))\\d{8}$");    Matcher m = p.matcher(mobiles);

return m.matches();

/** * 分辨率         屏幕的密度的值 * 1280*720     200          x对应的是720 * 1920*1080    300   5.0    xx对应的是1080 * 1920*1080    275   5.7   6.44 xx对应的是1080 * 1920*1080    dip 300     345 文字系统可以设置来变化... 5.0  m4 xx对应的是1080 */





0 0