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>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291606
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to