I would like to split/extract the 8 characters which are always between the second and third comma in a string. Earlier, I split the 8 characters from 24 to 31 position in a string, but the position can vary based on the position of the commas.
Example of string:
var mystr = “1xxxxxxxx,2xxxxxxxxxxxxxx,9xxxxxxx,0xxxxxxx,XX,Rxxxxxxx,”;
.
var neededcode = Code.slice(23,31);
Output should be “9xxxxxxx”
.