Skip to main content.
home | support | download

Back to List Archive

Swish-e regex help!

From: stuart <stuart(at)not-real.mohawk.net>
Date: Thu May 07 1998 - 20:26:25 GMT
I could use some help with a regex for a swish-e search feature I am
working on. Namely, I need to take a string of search words and add
"field=" in front of all non-boolean words("and" "or" and "nor") ie:

this and that or other nor thing

becomes:

field=this and field=that or field=other nor field=thing

I have Friedl's regex "bible" but haven't seen anything that would help
with this yet. Thanks for any help :o)  .

-Stuart
Received on Thu May 7 13:27:58 1998