Regex help
| From: | Gerard Samuel | Date: | Sat, 19 Oct 2002 22:55:43 +0000 |
| Subject: | Regex help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120638@lists.php.net to get a copy of this message | ||
I have a quoted string, like so ->
"test"
Since the string may contain multiple words, Im using regex.
Im trying ->
$search_words = preg_replace('/\"(\w+|\s+)\"/', '$1', $keywords);
It works great for one word. Using multiple words like ->
"this is a test" fails.
Any ideas???
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/