Returns the index of the first match in str, failing once length is reached. Note that we return 'length' for failure and a 0-based index on success
See Implementation
Returns the index of the first match in str, failing once length is reached. Note that we return 'length' for failure and a 0-based index on success