Anyone have any advice for parsing lines of text. I have been able to handle most of the parsing from these log files through some kinda sloppy code that looks for words in a certain spot word[5] or whatever. Having trouble though, when trying to pull the players name out of there, since it is possible for a player to have a space in their name. In addition to that I'm having trouble figuring out how I'm going to get both player names out of the following text line, and lines like it
L 08/27/2002 - 10:56:01: "playername1<3><BOT><Blue>" killed "playername 2<6><BOT><Red>" with "ac" Getting the weapon is easy, but I'm not sure how I'm gonna pull the 2 names out, and still take into account that the names might be more than 1 word. So far I have basically been running the lines through some code that will chop out for instance the first 3 words since they are always present, and then based on the message type look for other words, just having trouble with these kill messages. Any advice on parsing appreciated. Thanks. Jeremy [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
