%% Return Tokens and Remaining Text
% Create a string array. Starting in R2017a, you can create strings using double quotes.

str = ["all in good time";
       "my dog has fleas";
       "leave no stone unturned"]

%
% Return tokens in a string array, and return the remaining text in a second string array.

[token,remain] = strtok(str)

% Copyright 2012 The MathWorks, Inc.