Java Encontre substring entre duas cordas
StringUtils.substringBetween(str, "<%=", "%>");
Old-fashioned Oryx
StringUtils.substringBetween(str, "<%=", "%>");