Results 1 to 5 of 5

Thread: [resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    83

    Resolved [resolved]

    Hi, it's basically a parser.

    I will be getting text from a text file and putting it into a textbox on my form for manipulation. I'll give you an example of the text I need to grab from it and what the text would look like.

    Code:
    *** Chat Log Opened: Mon Aug 02 08:53:02 2010
    
    [08:53:02]  To stop logging, type /chatlog again.
    
    [08:54:30] @@name sends, "message"
    [08:54:30] @@name sends, "message"
    
    *** Chat Log Closed: Mon Aug 02 08:54:33 2010

    The parts I've colored red and underlined are the parts I need to take from the text and nothing else. The problem is that the name part (which always appears after the "@@" will always be different in length and so will the "message" part (which appears always in quote marks, just like the "@@").

    I've never really worked with text manipulation or trying to extract certain bits of text before, so any help will be appreciated, i'm pretty sure it's a easy job but I'm not sure of the commands.

    The overall thing is, I need to search if a certain part of text is in the message part, if not move on until the next existence, if it is, grab the name.

    Cheers.
    Last edited by meight; Aug 11th, 2010 at 10:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width