根据下划线截取字符串

String uid = "12927_832ade8dea014e34904f74c743ed0550_20200319";
System.out.println( uid.split("_")[0]);

你可能感兴趣的:(根据下划线截取字符串)