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

%   Copyright 2019-2020 The MathWorks, Inc.