multiple keywords between two char in java site:stackoverflow.com code example Example: java find substring between two strings StringUtils.substringBetween(str, "<%=", "%>");