parse world list

Discussion in 'Programming General' started by dodge, Mar 26, 2007.

parse world list
  1. Unread #1 - Mar 26, 2007 at 3:19 PM
  2. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    parse world list

    i'm sure you guys know this, but in case you dont here is what i used to parse the world information

    using regex use this exp
    Code:
    \(\d{1,3},\d{1},\d{1},("\w{1,10}"),\d{1,4},\d{1,3}\)
    hope this helps
     
  3. Unread #2 - Mar 26, 2007 at 3:31 PM
  4. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    parse world list

    omg, great idea to use a regex! i was actually taking the time to remove everything through the regular string parsing methods, i never thought about using a regex. Thanks for the idea man!
     
  5. Unread #3 - Mar 26, 2007 at 4:10 PM
  6. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    parse world list

    hehe np man, this regex will get you back in a array the world info

    what i have done is create a class where the world info is stored.

    i'll post the code once i done more work on it, for now i'm using the rslib posted in this forum (great code)
     
< RSLib 1.0 Released | world switch >

Users viewing this thread
1 guest


 
 
Adblock breaks this site