get string between two strings code example
Example 1: java find substring between two strings
StringUtils.substringBetween(str, "<%=", "%>");
Example 2: string between two strings
// Gegasoft found this useful and use in helper class
function get_string_between($string, $start, $end){
$string = ' ' . $string;
$ini = strpos($string, $start);
if ($ini == 0) return '';
$ini += strlen($start);
$len = strpos($string, $end, $ini) - $ini;
return substr($string, $ini, $len);
}