get words between " in java string code example Example: java find substring between two strings StringUtils.substringBetween(str, "<%=", "%>");