refind(key, '/archivedocs/');

The slashes prevent it from returning true if it finds 'archivedocsearch'
and similar mismatches.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Parker, Kevin [mailto:KParker@;workcover.com]
: Sent: Sunday, November 03, 2002 10:51 PM
: To: CF-Talk
: Subject: Words
:
:
: Can anyone recommend the best approach to finding a word inside a string.
: REFind seems a bit complex (or overkill) for this task.
:
: I am trying to check if a path contains a particular sub-directory name so
: that I can put additional info on the screen for the user. The path is
: returned in the value of Key from a Verity search. Maybe there is
: an easier
: way?
:
: For example I want to check if the results being returned in a
: Verity search
: contain the word "archivedocs" in the path thus:
:
: http://www.workcover.com/ftp/archivedocs/thisfile.pdf
:
: so that I can let the user know that they are looking at an historical
: document and need to check the accuracy of the info.
:
: TIA!
:
:
: **********
:
: Kevin Parker
: Web Services Manager
: WorkCover Corporation
:
: [EMAIL PROTECTED]
: www.workcover.com
:
: p: 08 82332548
: f: 08 82332000
: m: 0418 806 166
:
: **********
:
:
:
: ************************************************************************
: This e-mail is intended for the use of the addressee only. It may
: contain information that is protected by legislated confidentiality
: and/or is legally privileged. If you are not the intended recipient you
: are prohibited from disseminating, distributing or copying this e-mail.
:
: Any opinion expressed in this e-mail may not necessarily be that of the
: WorkCover Corporation of South Australia. Although precautions have
: been taken, the sender cannot warrant that this e-mail or any files
: transmitted with it are free of viruses or any other defect.
:
: If you have received this e-mail in error, please notify the sender
: immediately by return e-mail and destroy the original e-mail and any
: copies.
: ************************************************************************
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to