This MATLAB function returns the starting index of each substring of str that matches the character patterns specified by the regular expression.
For example, 'Find' and 'F' are both matches for lettersPattern, since the number of letters for a match is not specified. But strfind matches 'F' first and returns its index.