hi,
i know this has been covered many times but im completely stuck, im postive its something simple but after a few hrs searching this forum and the web i cant resolve it
to cut a very long story short, i have a some code that runs thru log files, and strips out the info im after.
all is well except from getting 1 bit of info from a string
heres an example string
L 01/03/2010 - 20:34:00: "dragon_mk<80><STEAM_0:1:9999999999><>" STEAM USERID validated
im looking at getting the user alias part of the string which in this example is dragon_mk,
i was going to use mid to get the info as the log always follows a set format so the start point for mid would always be 27,
i was going to use some code with InStrRev to find the 3rd < from the right to enable to work out the length of the alias, but my code keeps returning null, even a basic instrrev looking for the first < from the right returns null. and i cant search for the first < from the left as its possible the alias could contain < as alias's are allowed to use any char even spec characters.
is this because < is a special char ?
is their another way to achieve what i want
i cant simply count from the right of the string as the <80> part and the <STEAM_0:1:9999999999> part can be different lengths depending on the users details..
any help appreciated
scoobs
i know this has been covered many times but im completely stuck, im postive its something simple but after a few hrs searching this forum and the web i cant resolve it
to cut a very long story short, i have a some code that runs thru log files, and strips out the info im after.
all is well except from getting 1 bit of info from a string
heres an example string
L 01/03/2010 - 20:34:00: "dragon_mk<80><STEAM_0:1:9999999999><>" STEAM USERID validated
im looking at getting the user alias part of the string which in this example is dragon_mk,
i was going to use mid to get the info as the log always follows a set format so the start point for mid would always be 27,
i was going to use some code with InStrRev to find the 3rd < from the right to enable to work out the length of the alias, but my code keeps returning null, even a basic instrrev looking for the first < from the right returns null. and i cant search for the first < from the left as its possible the alias could contain < as alias's are allowed to use any char even spec characters.
is this because < is a special char ?
is their another way to achieve what i want
i cant simply count from the right of the string as the <80> part and the <STEAM_0:1:9999999999> part can be different lengths depending on the users details..
any help appreciated
scoobs