%% Find Vowels in Text
% Define a pattern expression, pat, that matches only the lower case vowels a, e, i, o, and u using characterListPattern. Extract the pattern from the string.

txt = "She sells sea shells by the sea shore.";
pat = characterListPattern("aeiou");
vowels = extract(txt,pat)

% Copyright 2020 The MathWorks, Inc.