📄 testmatch.java
字号:
package com.gctech.sms.platform;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: gctech</p>
* @author 王红宝
* @version $Id: TestMatch.java,v 1.1.1.1 2004/04/21 09:30:41 wanghb Exp $
*/
public class TestMatch {
public TestMatch() {
}
public static void main(String[] args) {
String yd = "13911658775";
String lt = "13351524557";
String gd = "01058584574";
System.out.println(gd.matches("0[0-9]{9,10}"));
System.out.println(yd.matches("13[5-9][0-9]{8}"));
System.out.println(lt.matches("13[0-3][0-9]{8}"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -