<< char | String type | convertCharsToStrings >> |
tf = contains(str, pattern) |
tf = contains(str, pattern,'IgnoreCase', true) |
tf = contains(str, pattern,'IgnoreCase', false) |
a string, string array or cell of strings.
a string to find.
a matrix of logical.
str = 'To make a mountain out of a molehill';
k = contains (str, 'hill')
k = contains (str, 'molehill')
k = contains (str, 'Hill', 'IgnoreCase', true)
A = {'Nel', 'son'; 'Nelson', 'Modules'}
k = contains(A, 'son')
A = ["Nel", "son"; "Nelson", "Modules"]
k = contains(A, 'son')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET