PHP How to find the string in the ob cache

use ob_get_contents();

PHP How to find the string in the ob cache