The array returned by this method contains substrings of this string, and each substring is terminated by another substring that matches the given expression, or by the end of the string. The substrings in the array are arranged in the order in which they appear in the string. If the expression does not match any part of the input, then the resulting array has only one element, that is, this string.