I write some java code to split string into array of string. First, I split that string using regex pattern \"\\\\,\\\\,|\\\\,\" and then I split using pattern
It will be evaluated from left to right. In regex1, \\,\\, is tried first, otherwise \\, is tried. That's why 12th String is not empty, because \\,\\, is matched in that case. For regex2, everything is matched using \\,, hence the empty String.