Hi
I am implementing a boolean search capability for a search engine I have written and figure on using preg_match_all to get the various arguments
so far to get the boolean AND terms working with:
/\+{1}\s{0,}\w+\s*/
and boolean NOT terms working with:
/\-{1}\s{0,}\w+\s*/
but I am at a loss (after many hours scrabbling about trying to learn enough perl regularexpression to fo it ) at how to then match the boolean OR (basically just search strings NOT preceeded by a + or - and 0 or more spaces)
I've gone through several tries but none have been successful
if you know your regexp and its a no brainer - I'd really appreciate a tip
many thanks
Ant