Sample Input :- (;1A;<1&&;2;<2&&;100Baxc02;<3&&;1000D33;<4&&;10001HGA;<5)
Expected output :- 1A,2,100Baxc02,1000D33,10001HGA
Note :- Length of input is not fixed it varies.
My code so far:
var AlertExpressionWithUid = "(;1A;<1&&;2;<2&&;100Baxc02;<3&&;1000D33;<4&&;10001HGA;<5)";
theArray = AlertExpressionWithUid.split(';');
output="";
for (i = 0; i < theArray.length; i++) {
theelm = theArray[i];
output = output + theelm;
}
alert(output);