Hi Al, You could use the replace function to replace the words you do not require with an empty string.
<cfset newstring = replace(oldstring,"Similar","ALL")> you may need to drop this into a loop and repeat for all the words to be removed. can use trim(newstring) to remove any trailing spaces. MikeT On 9/26/05, Aldon <[EMAIL PROTECTED]> wrote: > > Ok to be a bit more specific I have a of titles that have one similarity > they contain similar words like "Similar Words Found, Or Words Found". The > names are written out in the following format: > > John Doe Similar Words Found > Jane Similar Words Found > Alex Words Found > > I would like to search through the text for any of the words matching > "Similar" or "Words" or "Found" and return only the name for example: > > John Doe Similar Words Found = John Doe (the search would stop at > "Similar" > since it is the first word matching the criteria) > Jane Similar Words Found = Jane (the search would stop at "Similar" since > it > is the first word matching the criteria) > Alex Words Found = Alex (the search would stop at "Words" since it is the > first word matching the criteria) > > > Thanks > > Al > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219237 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

