I think Aldon wants to return everything before the second space, correct? So just two words with a space between them?
Maybe something like this - looping over the string and flagging occurences of a space, then taking the left characters when the second space is discovered. Kinda bulky but it should work. <cfset flag=0> <cfloop from="1" to="Len(theString)" index="theChar"> <cfset thischar=Mid(theString, theChar, 1> <cfif thischar is " "> <cfset flag = flag + 1> <cfif flag = 2> <cfset finalstring = Left(theString, theChar - 1)> <cfbreak> </cfloop> Didn't test it but something like that should work ok - finalstring being what you are looking for. ----- Original Message ----- From: "Aldon" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Friday, September 23, 2005 11:22 AM Subject: RE: String Search!!!! > The string is dynamic so the value changes! > > -----Original Message----- > From: Aldon Moore [mailto:[EMAIL PROTECTED] > Sent: Friday, September 23, 2005 2:16 PM > To: CF-Talk > Subject: String Search!!!! > > > How do I search a string for the first space " " between characters? > > "This should be so easy" converted to "This should" > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:219138 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54