0
public static final String REGEX_NAME = "[^aeiouAEIOU]{3,}";
public static String str = "abbbc";
if(str.matches(REGEX_NAME))
System.out.println("matched");

This is matching in any regex editor but does match in my spring boot swagger. But it is matching the string "bbbc" . I mean it can match a whole word but can not match a partial word. How to solve this.

sad_man
  • 25
  • 5

0 Answers0