I would like to find and return a sentence that starts with "Find" and ends with "eBay.", but I cannot get it to work. Here's what I have now:
if (preg_match("/^Find eBay\.$/", $post->post_content) == 1) {
$description = preg_grep("/^Find eBay\.$/", $post->post_content);
} else {
$description = $this->trim_excerpt_without_filters($this->internationalize($post->post_content));
}
Any advice would be great. Thanks!
Edit**
This is the string I'm searching:
<p><a href="http://cgi.ebay.com/ebaymotors/?cmd=ViewItem&_trksid=p3984.m1438.l2649&item=110804005978&sspagename=STRK%3AMEWAX%3AIT">here on eBay</a>Find this 1969 Chevrolet Camaro COPO 427 for sale in New York, .</p>