%whitespacePattern Creates a pattern that matches whitespace characters
%such as spaces and tabs.
%   PAT = whitespacePattern returns a pattern that matches one or more
%   whitespace characters.
%
%   PAT = whitespacePattern(N) returns a pattern that matches exactly N 
%   whitespace characters.
%
%   PAT = whitespacePattern(minWhitespace,maxWhitespace) returns a pattern 
%   that matches at least minWhitespace whitespace characters and no more 
%   than maxWhitespace whitepsace characters.
%
%   Examples
%       STR = compose("\tThe answer is\n42.");
%
%       PAT = whitespacePattern;
%       replace(STR,PAT,'_')                   % returns "_The_answer_is_42."
%
%   See also pattern, digitsPattern lettersPattern, alphanumericsPattern, 
%   replace, extract.

%   Copyright 2019-2020 The MathWorks, Inc.