Creates an iterator of all the capture group positions in order of appearance in the regular expression. Positions are byte indices in terms of the original string matched.
(&self)
| 38 | /// appearance in the regular expression. Positions are byte indices |
| 39 | /// in terms of the original string matched. |
| 40 | pub fn iter(&self) -> SubCapturesPosIter { |
| 41 | SubCapturesPosIter { idx: 0, locs: self } |
| 42 | } |
| 43 | |
| 44 | /// Returns the total number of capturing groups. |
| 45 | /// |
no outgoing calls