Assuming you know how to parse the log file (loop through the text file, breaking on 
chr(10) & chr(13) ), use the following to extract the IP from each line:

<cfset log = "Block Info 13.153.124.562 blocked">
<cfset log = 
REreplaceNocase(log,"[^0-9]{1,3}.[^0-9]{1,3}.[^0-9]{1,3}.[^0-9]{1,3}","","all")>

NOTE: I'm working on v5, and the backslash (escape) before the dot does not seem 
necessry - as a matter of fact, it messes it up.


>Hello:
>
>I'm trying to find a data in between a pattern of text from a string...
>How would I go about getting it?  
>
>For example, I want to get the ip address from this string "Block Info 
>163.153.124.62 Blocked."
>
>Thanks,
>
Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137984
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to