I have the following javascript string varaible:
var a = "1870|A00,1871|A01";
I want to separate the above string into the below strings:
var a1 = 1870,1871
var a2 = A00,A01
Any hints on this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 Answer