forum

home / developersection / forums / how to split the string in to different parts

How to split the string in to different parts

Manoj Bhatt 1848 15-May-2013
Hi Everyone! 

I want to split the string in to different parts. I will have some string which will be generated dynamically which will contains 500 characters. I want to split in to 5 parts. What i mean is i want to take 100 characters in to array[0], next 100 characters in array[1] ....

Example:

 var string = "kjfaorj.......................................................";
 array[0] = "kjfaorj..... up to 100 characters";
 array[1] = " next 100 characters ";

Thanks in advance! 

Updated on 15-May-2013
Manoj Bhatt

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By