%possessivePattern Creates a pattern that does not backtrack to complete match
%   NEWPAT = possessivePattern(PAT) returns a pattern that will not backtrack 
%   within PAT once PAT matches.
%
%   Examples
%       STR = "abcc abc";
%       PAT = "a" + possessivePattern("bc"|"b") + "c";
%       extract(STR,PAT)                   % returns "abcc"
%
%   See also pattern, asManyOfPattern, asFewOfPattern, contains, extract.

%   Copyright 2019-2020 The MathWorks, Inc.