%% Extract Letters and Digits from Text
% Use alphanumericPattern to extract letters and digits from text.
% Create txt as a string. Create pat as a pattern object that matches letters and digits using alphanumericPattern. Extract the pattern from txt.

txt = "abc 123 =+-*/";
pat = alphanumericsPattern;
alphanumerics = extract(txt,pat)

% Copyright 2020 The MathWorks, Inc.