📅  最后修改于: 2022-03-11 15:02:54.332000             🧑  作者: Mango
public static boolean validateUPI(String upi){
final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile("^(.+)@(.+)$", Pattern.CASE_INSENSITIVE);
Matcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(upi);
return matcher.find();
}