Matt Raible added a comment - 11/Apr/06 04:54 PM Comment from e-mail thread:
I think the correct pattern would be (?<!\\\\), (using negative lookbehind).
And it would be an idea to precompile the pattern;
protected Pattern delimiters = Pattern.compile("(?<!\\\\),");
String[] allowedRoles = delimiters.split(menu.getRoles());
etc.
I think the correct pattern would be (?<!\\\\), (using negative lookbehind).
And it would be an idea to precompile the pattern;
protected Pattern delimiters = Pattern.compile("(?<!\\\\),");
String[] allowedRoles = delimiters.split(menu.getRoles());
etc.