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

%   Copyright 2019-2020 The MathWorks, Inc.