Reputation: 16769
I have string like this
$string = "<!--:en-->English Characters<!--:--><!--:zh-->日本<!--:-->";
I'm only interested with the content between <!--:zh--><!--:-->
;
How can I do this?
Upvotes: 0
Views: 79
Reputation: 898
preg_match( '/<!--:zh-->(.*?)<!--/', $string, $matches);
print_r($matches[1]);
Upvotes: 4