Hello,

I have an IP address as a string and am trying to display just the last two 
octets. For example, if the string contains "[192.29.100.100]", I want to 
display just the "100.100" without brackets. I used the mid function as:

<CFSET bracket = '#find("[",thetrace)#'>

<cfoutput>#mid(thetrace,bracket,15)#</cfoutput>

("thetrace" is the text file and 15 characters or all the "[192.29.100.100]")

I tried:
<CFSET ipaddress = '#find(".29.",thetrace)#'>
<cfoutput>#mid(thetrace,ipaddress,7)#</cfoutput>

but get: .29.13. 

Thanks.

RO
HWW


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292550
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