Re: sentence cut?

From: Date: Mon, 10 Jul 2000 20:25:34 +0000
Subject: Re: sentence cut?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5803@lists.php.net to get a copy of this message
Tristan Rybak wrote: > > Hello > I am doing simple search engine. I have a database with saved pages (without > html tags). I need to cut a substring from each page which contains > specified keyword. It should be a sentence with this keyword. I tried a > regular expression but without effect. > eregi("([A-Z][.\n]*".$keyword."[^\.][\.])", $page, $result); > There could be pages without correct sentences and this case should be > resolved too. > Please help > Thanks > Tristan Rybak > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net Why not just grab HTDIG (http://www.htdig.org) and not have to do any parsing? -- Jay Mumper Consultant / Anteil, Inc. http://www.anteil.com

« previous php.general (#5803) next »