Cody

Problem 42810. String Find with Wildcards of a Cell array

Given a cell array of strings and a search string with single character (?) or multiple character (*) wildness return the indices of the cell array that match.

Examples:

{'abc' 'bdce' 'bkcz'},'b?c'  outputs [2 3] 'abc' invalid as ? requires a character
{'abcdfhjkfd' 'cf' 'fjhkc' 'fdjk'}, 'c*f' outputs [1 2], no char required for * 

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Jan 09, 2019