我收到此错误:
java.util.regex.PatternSyntaxException: Look-behind group does not have an
obvious maximum length near index 22
([a-z])(?!.*\1)(?<!\1.+)([a-z])(?!.*\2)(?<!\2.+)(.)(\3)(.)(\5)
^
我正在尝试匹配COFFEE
,但不是BOBBEE
。
我正在使用java 1.6。