look into the mid() function.

barring an elegant regex solution, you could do:

<cfset myNumbers = listFirst(listLast(myString, '['), ']') />

On 10/19/07, Orlini, Robert <[EMAIL PROTECTED]> wrote:
> 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:291601
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