FindStringSubmatchIndex returns the index pairs for the leftmost match and capture groups. Same as FindSubmatchIndex but for strings.
(s string)
| 680 | // FindStringSubmatchIndex returns the index pairs for the leftmost match |
| 681 | // and capture groups. Same as FindSubmatchIndex but for strings. |
| 682 | func (r *Regex) FindStringSubmatchIndex(s string) []int { |
| 683 | return r.FindSubmatchIndex(stringToBytes(s)) |
| 684 | } |
| 685 | |
| 686 | // FindAllIndex returns a slice of all successive matches of the pattern in b, |
| 687 | // as index pairs [start, end]. |