|
ou812 -> RE: SQL string question (9/27/2005 12:41:49)
|
As Dan was saying, use Instr(string,searchstring) to get the position of "src=" then use Mid(string,start,length) to get the IP address. So, something like: ippos=instr(MsgText,"src=") + 4 adding 4 to compesate for the actual text src= dstpos=instr(MsgText,"dst=") length = dstpos - ippos IPtemp=mid(MsgText,ippos,length) this will then grab the whole string up to the dst=. we then need to find out where the : is and cut there colonpos=instr(IPtemp,":") IP=mid(IPtemp,0,colonpos) Not sure if this works or not, since I didn't try it, but it gives you an idea of how to attack it. Here are the functions with some examples too: http://www.learnasp.com/learn/strings.asp
|
|
|
|