Start
needs(code_samples);
Function Syntax
- pattern is the regular expression to use
int start(matcher pattern ,int group )
- pattern is the regular expression to use
- group is the number of the capturing group
Returns the starting index of the first character matched by the specified capturing group, or if no group is specified, it returns the index of the last group found.
If the match was successful, but the group did not match anything, then it returns -1.