%% Match Sets of Characters with Specified Size
% Create txt as a string. Create a pattern that matches a white space followed by two to three wildcard characters followed by a letter. Extract the pattern from txt.

txt = "1a 23b 456c 7890d";
pat = " " + wildcardPattern(2,3) + lettersPattern;
extract(txt,pat)

% Copyright 2020 The MathWorks, Inc.