Lines Matching refs:group

249     /// match in `text`. Capture group `0` always corresponds to the entire
253 /// capturing group matches. Otherwise, `find` is faster for discovering
280 /// Note that the full match is at capture group `0`. Each subsequent
281 /// capture group is indexed by the order of its opening `(`.
296 /// // Note that this will panic on an invalid group name.
309 /// The `0`th capture group is always unnamed, so it must always be
322 /// yields information about capturing group matches.
412 /// corresponding capture group `name`.
415 /// capture group (counted by order of opening parenthesis where `0` is the
417 /// underscores) corresponding to a named capture group.
419 /// If `name` isn't a valid capture group (whether the name doesn't exist
423 /// group named `1a` and not the capture group at index `1`. To exert more
444 /// capturing group matches easily:
459 /// group. Here's the last example, but using this expansion technique
475 /// delineate a capture group replacement and surrounding literal text.
488 /// Without the curly braces, the capture group name `first_` would be
493 /// regard for capturing group expansion. This can be done by wrapping a
519 /// capturing group matches in the replacement string.
533 /// capturing group matches in the replacement string.
668 /// equivalence to the `0`th capture group.
881 /// Returns the start and end positions of the Nth capture group. Returns
882 /// `None` if `i` is not a valid capture group or if the capture group did
893 /// capturing group that corresponds to the entire match.
911 /// Captures represents a group of captured strings for a single match.
914 /// index corresponds to the next capture group in the regex. If a capture
915 /// group is named, then the matched string is *also* available via the `name`
919 /// Positions returned from a capture group are always byte indices.
929 /// Returns the match associated with the capture group at index `i`. If
930 /// `i` does not correspond to a capture group, or if the capture group
936 /// group didn't participate in the match:
952 /// Returns the match for the capture group named `name`. If `name` isn't a
953 /// valid capture group or didn't match anything, then `None` is returned.
959 /// they appear in the regex. If a particular capture group didn't
968 /// capture group `name`, and writes them to the `dst` buffer given.
971 /// group (counted by order of opening parenthesis where `0` is the
973 /// underscores) corresponding to a named capture group.
975 /// If `name` isn't a valid capture group (whether the name doesn't exist
979 /// is used. e.g., `$1a` looks up the capture group named `1a` and not the
980 /// capture group at index `1`. To exert more precise control over the
981 /// name, or to refer to a capture group name that uses characters outside
984 /// does not refer to a capture group name in the corresponding regex, then
995 /// group that corresponds to the full match.
1029 /// Get a group by index.
1039 /// If there is no group at the given index.
1046 .unwrap_or_else(|| panic!("no group at index '{}'", i))
1050 /// Get a group by name.
1053 /// of the group name (the index).
1061 /// If there is no group named by the given value.
1068 .unwrap_or_else(|| panic!("no group named '{}'", name))
1075 /// If a particular capture group didn't participate in the match, then `None`
1166 /// have a match at capture group `0`.