Alternatively, you can split on the double quotes first. This way, you end up with an array of "quoted searchstrings", which you can split individually as separate search entries.
I agree with Peter that regular expressions would be much more useful, but they can also be more difficult to learn at first.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Innocence by The Smashing Pumpkins (Track 7 from the album: Machina II: Friends and Enemies of Modern Music)
|