Results 1 to 3 of 3

Thread: delimiter

  1. #1
    satin is offline Member
    Join Date
    Nov 2008
    Posts
    8
    Rep Power
    0

    Default delimiter

    Hi everybody,

    i have a problem with delimiter. i need to get some values from line. i have a string like this

    someString = 1 2 3

    i need to get someString and decimal values. i use delimiter like this "[= ]". but it doesnt take white spaces for delimiter. i try to use it like this "[ = ]" it doesnt work either. i used almost everithing. I used trim(), i used loats of combinations in delimiter (without = , with some other white spaces ...), but it doesnt work. what am i doing wrong? thanks a lot.

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    why not just use .split() to make an array, then loop through all the entries. If it parses cleanly, its an int, if not, go to the next entry

  3. #3
    satin is offline Member
    Join Date
    Nov 2008
    Posts
    8
    Rep Power
    0

    Default

    i was just wondering if there is some way for delimiter. my program actually works , but i dont thing its done properly.

Posting Permissions

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