Ed Brown Active Member Licensed User Longtime User Dec 27, 2015 #1 If I have the following string a;b;c;;;f;;; and I split this to get a String array the result is an array with just 6 elements in it. The last 3 elements (which would be empty strings) are not added to the array and this then leads to out of bounds exceptions. The work around for me right now is to add some arbitrary value to the end of the string such as a;b;c;;;f;;;end and by doing so I'll get the desired result of an array containing 9 elements.
If I have the following string a;b;c;;;f;;; and I split this to get a String array the result is an array with just 6 elements in it. The last 3 elements (which would be empty strings) are not added to the array and this then leads to out of bounds exceptions. The work around for me right now is to add some arbitrary value to the end of the string such as a;b;c;;;f;;;end and by doing so I'll get the desired result of an array containing 9 elements.
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2015 #2 This is how the native Regex implementation works. It removes trailing empty strings.
Ed Brown Active Member Licensed User Longtime User Dec 27, 2015 #3 Hmm, ok. Is it possible to update the documentation/help to indicate this?