R
Robert Watkins
Okay, I have something that works, but I don't like it:
String SEMICOLON_NOT_ENTITY_REGEX = "(?<!&#?\\w{1,20}+);";
The part of the regex that says, "at least 1 but not more than 20" is a
horrible addition that is the only way I could find around the odd
Exception:
java.util.regex.PatternSyntaxException: Look-behind group does not have an
obvious maximum length near index 9
(?<!&#?\w+);
^
Is there any way around this?
String SEMICOLON_NOT_ENTITY_REGEX = "(?<!&#?\\w{1,20}+);";
The part of the regex that says, "at least 1 but not more than 20" is a
horrible addition that is the only way I could find around the odd
Exception:
java.util.regex.PatternSyntaxException: Look-behind group does not have an
obvious maximum length near index 9
(?<!&#?\w+);
^
Is there any way around this?