%whitespaceBoundary Creates a pattern that matches the beginning or end of a substring of whitespace characters
%   PAT = whitespaceBoundary returns a pattern that matches the beginning or end of
%   a substring of whitespace characters.
%
%   PAT = whitespaceBoundary(TYPE) returns a pattern that matches the TYPE of
%   whitespace boundary. TYPE can be 'start', 'end', or 'either'.
%
%   Examples
%       STR = "We landed on the moon in 1969";
%
%       PAT = whitespaceBoundary + digitsPattern;
%       extract(STR,PAT)                   % returns  "1969"
%
%   See also pattern, textBoundary, letterBoundary, contains, extract, newline.

%   Copyright 2019-2020 The MathWorks, Inc.