Sridhar_Rao
In the zone
Hello guys, I am stuck here.
The textarea element has some text value like this: Ak, Am, Co, Cfp, Ce, Cfm, Ao, ... etc. As you can see each significant value is separated by a comma.
I want to parse through this long string and extract each value separately into an array. I mean the array should be like this:
and so on. How can this be done in javascript? I know this can be done using regex pattern but I have no idea how to do it.
The textarea element has some text value like this: Ak, Am, Co, Cfp, Ce, Cfm, Ao, ... etc. As you can see each significant value is separated by a comma.
I want to parse through this long string and extract each value separately into an array. I mean the array should be like this:
Code:
myarray[0]="Ak"
myarray[1]="Am"
myarray[2]="Co"
myarray[3]="Cfp"
myarray[4]="Ce"
myarray[5]="Cfm"
myarray[6]="Ao"