%caseInsensitivePattern Creates a pattern that matches case insensitively
%   NEWPAT = caseInsensitivePattern(PAT) returns a pattern that matches PAT
%   using case insensitive matching.
%
%   Examples
%       STR = "FOO foo Foo";
%       PAT = caseInsensitivePattern("foo");
%       extract(STR,PAT)                   % returns  ["FOO"; "foo"; "Foo"]
%
%       STR = "0x123ABC"
%       PAT = caseInsensitivePattern(characterListPattern("a","f"));
%       extract(STR,PAT)                   % returns  ["A"; "B"; "C"]
%
%   See also pattern, caseSensitivePattern, optionalPattern, 
%   characterListPattern, contains, extract.

%   Copyright 2019-2020 The MathWorks, Inc.