How can i parse this string
Posted on 2004-10-19
i have a string of
10/19/2004 12:08:03 AM - ( 757) 9fe2 LOGIN "firstname.lastname@example.org" "XXXX"
id like to parse it so i get the values of
check for LOGIN in multible lines of a text file
when line is found return values of
Login_Date = "10/19/2004"
Login_Time = "12:08:03 AM "
Login_Email = "email@example.com"
Login_PW = "XXXX"
i also have a line before all this that is
10/19/2004 12:08:02 AM - Requested IMAP connection from 220.127.116.11 [18.104.22.168], ID=757
id like the
Login_Protocal = "IMAP"
Login_IP = "22.214.171.124 "
Login_ID = "757"
one thing that i think may help is the id is in both lines so it can be assoicated with it maybe..
i do not understand how to parse this for the info to be in strings..
my other problem is there is alot of them with diffrent users.
id like it to break down the logons by time user loged on with what ip..sorted by users email
i assume i need to do arrays but i ahve never done this before so i have no clue how to do this
i could of done this with the mid fuction that vb6 has (was unsure if vb.net has it or not) but i figured vb.net has a better way..maybe faster too
please post code examples