%alphanumericsPattern Creates a pattern that matches letter and digit characters
%   PAT = alphanumericsPattern returns a pattern that matches one or more
%   letter and digit characters.
%
%   PAT = alphanumericsPattern(N) returns a pattern that matches exactly N 
%   letter and digit characters.
%
%   PAT = alphanumericsPattern(minAlphanum,maxAlphanum) returns a pattern 
%   that matches at least minAlphanum letter and digit characters and no more 
%   than maxAlphanum letter and digit characters.
%
%   Examples
%       STR = "The answer is 42.";
%
%       PAT = alphanumericsPattern;
%       extract(STR,PAT)                 % returns  ["The"; "answer"; "is"; "42"]
%
%       PAT = alphanumericsPattern(3);         
%       extract(STR,PAT)                 % returns  "The"
%
%       PAT = alphanumericsPattern(2,4);         
%       extract(STR,PAT)                 % returns  ["The"; "answ"; "er"; "is"; "42"]
%
%   See also pattern, digitsPattern, lettersPattern, contains, extract.

%   Copyright 2019-2020 The MathWorks, Inc.