I have a comma delimited string. I want to put in array, and then back to comma delimited string later. Can someone give me an example please?
thx in advance.
Printable View
I have a comma delimited string. I want to put in array, and then back to comma delimited string later. Can someone give me an example please?
thx in advance.
the String object has a split([separator][, limit])
method.
limit is a limit on the number of splits to be found.
I'm pretty sure join() exists too, but I'm not sure on the parameters.
her it is:
join([deliminator])
where deliminator default is a comma. so
myString = myArray.join()
should get the whole array back into a string seperated by a comma.
Thanks guys. I was expecting to have to write some loop with lots of parsing, but I guess that java guys did good :)
thx again.
heh, java != JavaScript, there's already a big thread going on about this.
JavaScript guys did good.
Yeah, I think we are all aware of that. I don't really know to many of the differences though. That's what forums are for :)
thx for helping.
'sneed