List<String[]> matches = regex.getAllMatches(line); if(matches != null && !matches.isEmpty()) { for(String [] group : matches) {
if(regex.matches(value.trim())) { int r = -1, g = -1, b = -1; String[] matches = regex.getAllMatches(value).get(0); if(matches[0] != null && matches[0].equals("#")) {
while(oneVariableBound && (variables = regex.getAllMatches(replaceText)).size() > 0) { oneVariableBound = false; logger.trace("analysing text: '{}'", replaceText);
while(oneVariableBound && !(variables = regex.getAllMatches(replaceText)).isEmpty()) { oneVariableBound = false; logger.trace("analysing text: '{}'", replaceText);
while(oneVariableBound && (variables = regex.getAllMatches(replaceText)).size() > 0) { oneVariableBound = false; logger.trace("analysing text: '{}'", replaceText);