"ianvink" <ianvink gmail.com> wrote:
>I'd like to have a regex which will allow and
"AND" boolan search.
>
>Eg: FRENCH <AND> Food
If you're trying to parse something from a command
line/search box, you'll
need more than regex to accomplish a boolean query --
basically, a series
of regexes to extract the different terms/conditions into
appropriate
arrays to be used when performing the actual search. That
said, to
replicate the functionality of such a search, you could do
this:
(french.*?food)|(food.*?food)
That'll find french food or food french with any number of
characters in
between.
--
Remember, no matter where you go, there you are. -Buckaroo
Banzai
Online Regex find/replace utility: http://rereplace.com
Command-based online image editor: http://theprawn.com/imag
iine
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|