使用正则表达式从字符串中取电话号码:

String str = "aaabbbcc13809148338eedfsfsf15702957315ksfss;13571708019fsdfk15114809485sfksfsf;sk;sfkskf;sfsk";
		String regex = "[1][358]\\d{9}";
		Pattern p = Pattern.compile(regex);
		Matcher matcher = p.matcher(str);
		while(matcher.find()){
			String group = matcher.group();
			System.out.println(group);
		}

  

相关文章:

  • 2021-11-30
  • 2022-01-02
  • 2021-11-30
  • 2021-12-23
  • 2021-12-23
  • 2021-07-17
  • 2021-05-30
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-12-09
  • 2021-11-30
相关资源
相似解决方案