我想得到
<hello@yellow.com>
从
asdasdasdasdasdadasdsad<hello@yellow.com>asdasdasdasdasd
从以下方法:
private String extractInvalidEmailAddress(String message) {
Pattern pattern = Pattern.compile("<[^>]*>");
Matcher matcher = pattern.matcher(message);
matcher.find();
message = matcher.group();
return message;
}
但我得到的只是null
!我必须做什么才能得到hello@yellow.com
?