How would I use preg_match
to extract a sentence from a website?
file_get_contents('http://link.com');
preg_match('/\Name of the day is\/', $page, $matches);
I want to extract ONLY the sentence that contains "Name of the day is" and show that sentence.