Thanks...looks good! -----Original Message----- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 2:05 PM To: CF-Talk Subject: RE: find a string
So you want whats between [ and ]? Reextract http://www.contentbox.com/claude/CustomTags/REextract/testREextract.cfm?p=ts ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Orlini, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 12:50 PM To: CF-Talk Subject: find a string I want to display a set of characters after a string (or in this case one chgarater) in a text file is found. For example, after the search finds the "[" bracket, how can I tell it to display a certian amount of characters after this "["? if the string is [11999922] I want it to display only the characters after which would be 11999922 Thanks. RO HWW Here is my code: <cffile action="read" file="e:\tracetest2.txt" variable="thetrace2"> <pre> <cfoutput> <CFSET thetrace2 = #trim(thetrace2)#> <font face="Verdana" size="1"><b> #left(thetrace2, 50)# </b></font> </pre> This output tells me the "[" bracket is 36 spaces <cfset stringToSearch = "#left(thetrace2, 50)#"> #findoneof("[",stringToSearch)#<br> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291619 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

