2
Answers

String Manipulation

Jay

Jay

16y
3.3k
1

Hi Everyone!

I was wondering if someone could help me.  I have some long strings that have words that are delimited by a semi-colon and I want to divide the words and put them into a list if possible.  For example, I have a string like this:   ships in 2 boxes; great value; on sale; this item includes free shipping; buy one get one free

I want to manipulate this string to something like:

  • ships in 2 boxes
  • on sale
  • this item includes free shipping
  • buy one get one free

or something similar.  Could someone please give me a tip and point me in the right direction?

Thanks in advance

Jay

Answers (2)