Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegExp question

Status
Not open for further replies.

deepatpaul

Programmer
Jul 7, 2004
57
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top