Hi All,

We have a search box on our site. Want users to be able to type things like

"Healthy Children" Canada Nutrition

and our SQL to loop over and look for
"Healthy Children"
OR
Canada
OR Nutrition

The SQL part we have. And I have a RegEx that works beautifully - but only if 
someone enters a phrase (in quotes).

Our code is:
<cfset my_reg_ex = "(?:""([^""]+)"")|([^ ]+) ">
<cfset my_search_terms_array = REMatch (my_reg_ex, FORM.searchString)>

.... then our SQL to loop over the array that REMatch creates.

Any help on why the RegEx does NOT work (it always misses the last word in the 
FORM.searchString (i.e. our array is always one short!).

Many thanks,

Matts 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/regex/message.cfm/messageid:1184
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to