compares a Regular Expression to a string and if it matches all or part of the string, returns the numeric position in the string where the match starts.
The optional start position allows the search to start anywhere in the string.
An additional option is to return sub expressions.