%textBoundary Creates a pattern that matches the beginning or end of text
%   PAT = textBoundary returns a pattern that matches the beginning or end of
%   text.
%
%   PAT = textBoundary(TYPE) returns a pattern that matches the TYPE of text
%   boundary. TYPE can be 'start', 'end', or 'either'.
%
%   Examples
%       STR = "Four score" + newline + "and seven years ago";
%
%       PAT = textBoundary + lettersPattern;
%       extract(STR,PAT)                   % returns  "Four"
%
%       PAT = lettersPattern + textBoundary;
%       extract(STR,PAT)                   % returns  "ago"
%
%   See also pattern, lineBoundary, letterBoundary, contains, extract,
%   startsWith, endsWith.

%   Copyright 2019-2020 The MathWorks, Inc.