%% Find Words That Start with Vowels
% Create pat as a pattern object that matches words beginning with vowels using letterBoundary, characterListPattern, and lettersPattern. Extract the pattern.

txt = "Do you like words like armadillo, echidna, iguana, ostrich, & unicorn?";
pat = letterBoundary + characterListPattern("aeiou") + lettersPattern;
words = extract(txt,pat)

% Copyright 2020 The MathWorks, Inc.