deepatpaul
Programmer
I'm trying to filter output from a keyword search based on a number of parameters, and the most important is if a user enters a name that matches one in the record returned with a 'privacy' flag, to not show that record.
My problem is I can't figure out how to create a ReFind() inside an IF to check to see if the keyword matches that field. This is the semi-pseudocode I had in mind:
<cfoutput query="blah">
<cfif (not isPrivate is 1) and not ReFindNoCase('#regExp# here', form.keyword)>
---- show record ----
</cfif>
</cfoutput>
What type of RegExp can I put in to include space on either side of the keyword?
My problem is I can't figure out how to create a ReFind() inside an IF to check to see if the keyword matches that field. This is the semi-pseudocode I had in mind:
<cfoutput query="blah">
<cfif (not isPrivate is 1) and not ReFindNoCase('#regExp# here', form.keyword)>
---- show record ----
</cfif>
</cfoutput>
What type of RegExp can I put in to include space on either side of the keyword?