%characterListPattern Creates a pattern that matches characters from a list
%   PAT = characterListPattern(CHARACTERS) returns a pattern that matches
%   any character in CHARACTERS.
%
%   PAT = characterListPattern(startCharacter,endCharacter) returns a pattern that 
%   matches any character between startCharacter and endCharacter.
%
%   Examples
%       STR = "0x123abc"
%       PAT = characterListPattern('a','f');
%       extract(STR,PAT)                   % returns  ["a"; "b"; "c"]
%
%       STR = "The answer is 42."
%       PAT = characterListPattern('aeiou');         
%       extract(STR,PAT)                   % returns  ["e"; "a"; "e"; "i"]
%
%       STR = "Two kids named Bobby and Sue"
%       PAT = characterListPattern('C','a');         
%       extract(STR,PAT)                   % returns  ["T"; "a"; "a"; "S"]
%
%   See also pattern, lettersPattern, alphanumericsPattern, contains, extract.

%   Copyright 2019-2020 The MathWorks, Inc.