interdrp
	public class ReYo {
		public static void main(String[] args) {
			String str = "111111kakkkkkkkkkkwwwaacbbdAAA";
			String s = "";
			Matcher m = Pattern.compile("(\\w)\\1*").matcher(str);
              // Pattern pattern = Pattern.compile("(.)\\1*"); while (m.find()) { s += m.group().subSequence(0, 1); } System.out.println(s); } }

 

分类:

技术点:

相关文章:

  • 2021-06-29
  • 2021-06-16
  • 2022-01-27
  • 2021-12-24
  • 2021-11-22
  • 2021-10-03
  • 2021-09-02
  • 2021-12-17
猜你喜欢
  • 2021-12-31
  • 2021-08-28
  • 2022-01-17
  • 2021-10-22
  • 2022-12-23
  • 2022-03-08
  • 2021-05-28
相关资源
相似解决方案