Jump to content

Parsing a String


xProteuSx

Recommended Posts

I remember doing this over a year ago, but now I've completely forgotten how to do this, and I'd much appreciate some pointers:

 

I have a string as follows:

 

12|445|3|321|88|2

 

I'd like to do 2 things:

 

First, I'd like to count the number of numbers (6 in this case: 12, 445, 3, 321, 88, 2);

Then I'd like to enter them into an array. 

 

How do I go about this?  Please help ...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.