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