Should this work for all reasonable cases? It seems to work for several test strings.
$start= "str1";
$end= "str2";
preg_match ("|$start (.*) ? $end |i", $contents, $text);
$segment= $text[1];
Thanks....
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php