Returns the match for the capture group named `name`. If `name` isn't a valid capture group or didn't match anything, then `None` is returned.
(&self, name: &str)
| 928 | /// Returns the match for the capture group named `name`. If `name` isn't a |
| 929 | /// valid capture group or didn't match anything, then `None` is returned. |
| 930 | pub fn name(&self, name: &str) -> Option<Match<'t>> { |
| 931 | self.named_groups.get(name).and_then(|&i| self.get(i)) |
| 932 | } |
| 933 | |
| 934 | /// An iterator that yields all capturing matches in the order in which |
| 935 | /// they appear in the regex. If a particular capture group didn't |