寻找所有元音最大长度的字符串的最大长度
例如: -
aeiaaioooaauuaeiou
response :-
aeiou
aeeiou
aaaaeiou
aaeiou
aaeiou
aeiiou
...
aeiiooouuu
...
aeiiooouuu
但结果将是(aeiiooouuu)10,
我无法获得单一且重复的字符
My code :-
String str ="aeiaaioooaauuaeiou";
Pattern p = Pattern.compile("([aAeEiIoOuU])\\1{0,}");
Matcher m =p.matcher(str) ;
while (m.find()) {
System.out.println(m.group());
}