php-developer-list | 2002112
Date: 11/27/02
- Next message: Sebastian Bergmann: "Re: [PHP-DEV] Parse search string a la Google (Regular expression?)"
- Previous message: Sterling Hughes: "Re: [PHP-DEV] Bug #20308 (Feature Request)"
- Next in thread: Sebastian Bergmann: "Re: [PHP-DEV] Parse search string a la Google (Regular expression?)"
- Reply: Sebastian Bergmann: "Re: [PHP-DEV] Parse search string a la Google (Regular expression?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
In my application I would like to offer a search interface like Google and
other popular search engines. The complication for me is to explode the
search string into proper array elements, like this:
$search_str = "\"search for this sentence\" -NotForThisWord
ButDefinitelyForThisWord";
$array[0]: "search for this sentence"
$array[1]: "-NotForThisWord"
$array[2]: "ButDefinitelyForThisWord"
I have tried to use regular expressions but my case seems to be a bit more
complicated for this (?).
Does anybody have a code snippet, a class or something, that can help me
with this?
Thanks in advance,
Joachim
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Sebastian Bergmann: "Re: [PHP-DEV] Parse search string a la Google (Regular expression?)"
- Previous message: Sterling Hughes: "Re: [PHP-DEV] Bug #20308 (Feature Request)"
- Next in thread: Sebastian Bergmann: "Re: [PHP-DEV] Parse search string a la Google (Regular expression?)"
- Reply: Sebastian Bergmann: "Re: [PHP-DEV] Parse search string a la Google (Regular expression?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

