Jump to content

split strings (text between characters)


Stooney

Recommended Posts

im reading from a textfile, and building an array with the data.  ex of text file:
[code]
|AEther Flash|,|7th Edition|,|Red|,|Enchantment|,|2RR|,|n/a|,| Whenever a creature comes into play, AEther Flash deals 2 damage to it.|,|As the foul beast appeared, arcane lightning crackled around it.#172|,|Wayne England|,|Uncommon|,0,7130
[/code]
that is one of many thousand lines in the file.

what i need to do is take this and build an array with it.  each element of the array will contain the text in between the ||.  So in the above example, array element 0 would be 'Aether Flash', 1 would be 7th Edition, and so on.  thnx in advance for the help :D
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.