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