If you want to find (as in your example) an IP address, these are in the
form
[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}
Which will work with any of the re functions in CF.
I'm not sure exactly what it is you want to do, so I can't be more
specific, but if you need additional help, why not take it over to
CF-Regex, where ninjas are standing by?
Scott Wilhelm wrote:
>The only problem w/ that, is that the string of text is huge (it's from a log file
>that is parsed by spaces, but only the program knows how to parse it back :(
>
>Thanks,
>
>Scott
>
>
>
>>-----Original Message-----
>>From: Aunger, Mitch [mailto:[EMAIL PROTECTED]
>>Sent: Monday, September 22, 2003 1:29 PM
>>To: CF-Talk
>>Subject: RE: Find A Pattern
>>
>>
>>Simply do a replace
>>
>><cfset xxx = replace(#yourvariablename#,"Block Info ","",
>>"all")> (typing from memory - don't shoot me if there are typo's)
>>
>>That will get rid of the first part... Think you can figure
>>out the rest from there ;)
>>
>>-----Original Message-----
>>From: Scott Wilhelm [mailto:[EMAIL PROTECTED]
>>Sent: Monday, September 22, 2003 12:18 PM
>>To: CF-Talk
>>Subject: Find A Pattern
>>
>>
>>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:137969
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