String? reg 1? =? "[\ \ S \ \ S]* Gender \ \ S *(:|)\ S *([\ \ |]*)\ \ |? [\ \ S \ \ S]* ";
String? reg2? =? "[\\s\\S]* Nationality \ \ S *:|)\ S *([\ \ |]*)\ \ |? [\ \ S \ \ S]* ";
String? reg3? =? "[\\s\\S]* Birthday \ \ s * (:|:) \ s * ([\ \ d \-] *) \ |? [\ \ S \ \ S]* ";
String? str? =? "Gender: Ms | Nationality: Han nationality | Date of birth: 1990-9-22\n"? +
? Marital status: married | Height: 165cm | Weight: 50kg \n? +
? "Registered address: Ronggui Town, Shunde, Guangdong | Current address: Ronggui Town, Shunde, Guangdong";
String? Sex? =? str.replaceAll(reg 1,"$2");
String? mz? =? str.replaceAll(reg2,"$2");
String? Bryce? =? str.replaceAll(reg3,"$2");
System.out.println? (sex);
System.out.println? (mz);
System.out.println? (brith); You changed it. That's not the original I gave you.