%% Match Set Number of Letters and Digits
% Create txt as a string. Create pat as a pattern object that matches groups of three letters and numbers using alphanumericPattern. Extract the pattern from txt.

txt = "abcde123456_@#$";
pat = alphanumericsPattern(3);
alphanumerics = extract(txt,pat)

% Copyright 2020 The MathWorks, Inc.