I have a value like
V = "Val1,Val2;Val3"
In this case If I need to separate "Val1,Val2" from V I am using this
var newVal = V.substr(0, V.indexOf(";"));
But this case is faling for some value like this
V = "Val4;Val1,Val2;Val3"
Any idea how to take only the value which having "," and remove all other character which is separated by ";"
regexfor this\w+,\w+…? (hint hint);and,? Or are you trying to parse it?