Dear.. there can be multiple way. The easy way I think is to parse the string by dividing into tokens. Here is example you requested. lets say your string is in variable a;
strfind can return empty and you cannot use && or || with empty .
strfind finds all occurrences and returns their index . It is not intended to directly answer the question of whether to pattern occurs somewhere Yes or No. With new enough MATLAB use contains()
Best Answer