Preg_match_all question
| From: | .: B i g D o g :. | Date: | Tue, 22 Oct 2002 01:16:14 +0000 |
| Subject: | Preg_match_all question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120834@lists.php.net to get a copy of this message | ||
I am trying to get my preg_match_all to work with double quoted words...
For example, I have a form that a user can enter in keywords like so:
"test" author name, book
I want to match all words first that have double quotes, here is the
code:
preg_match_all( '/(")(.*)(")/', $params['keywords'], $temp );
This matches all however, it all so adds a "/" to it
So if the keyword that is entered is "medicine man" it returns
medicine man/
Any suggestions would be great...
--
.: B i g D o g :.