I need split a string using ';' as separator, if the string has all of fields filled it's works good, but if some fields are not filled, like
string.split("A;B;C;;;")
not work... for this string I expected that output would
[0]=A
[1]=B
[2]=C
[3]=''
[4]=''
[5]=''
, but the output is only first three fields
[0]=A
[1]=B
[3]=C
... the other fields wasn't created
Some clue how to solve this?