Joke Collection Website - Public benefit messages - Can anyone help me parse the order number, payment amount, verification code and time using java regular expressions.

Can anyone help me parse the order number, payment amount, verification code and time using java regular expressions.

String str = "Dear user, for your last order of 8237, the payment amount is 0.01 yuan, and the verification code is 671906, sent at 15:08. Please enter it in time and do not disclose it. Any request is fraud. . ";

String reg = ".*The last order (.*).*The payment amount is ([^yuan]*)yuan.*Verification code (\\d+), ([\ \d:]+)发.*";

String a = str.replaceAll(reg,"$1");

String b = str.replaceAll(reg,"$2 ");

String c = str.replaceAll(reg,"$3");

String d = str.replaceAll(reg,"$4");