Hi how do I get PHP to return data between two strings. Like this example
$a = "<Blah some other stuff>THE DOG RUNS</BLAH>";
I want to retrieve THE DOG RUNS
THE DOG RUNS can be anything like a wildcard
Hello,
I found this to work:
if(eregi(""<Blah some other stuff>(.*)</BLAH>", $input_str, $out_str)) { print htmlspecialchars($out[1]) . "<br>\n"; }
Hope this works. Bill