Lines Matching refs:group
193 /// match in `text`. Capture group `0` always corresponds to the entire
197 /// capturing group matches. Otherwise, `find` is faster for discovering
224 /// Note that the full match is at capture group `0`. Each subsequent
225 /// capture group is indexed by the order of its opening `(`.
240 /// // Note that this will panic on an invalid group name.
253 /// The `0`th capture group is always unnamed, so it must always be
266 /// yields information about capturing group matches.
360 /// corresponding capture group `name`.
363 /// capture group (counted by order of opening parenthesis where `0` is the
365 /// underscores) corresponding to a named capture group.
367 /// If `name` isn't a valid capture group (whether the name doesn't exist
371 /// group named `1a` and not the capture group at index `1`. To exert more
392 /// group matches easily:
410 /// group. Here's the last example, but using this expansion technique
426 /// delineate a capture group replacement and surrounding literal text.
439 /// Without the curly braces, the capture group name `first_` would be
444 /// regard for capturing group expansion. This can be done by wrapping a
470 /// capturing group matches in the replacement text.
484 /// capturing group matches in the replacement text.
610 /// equivalence to the `0`th capture group.
871 /// Returns the start and end positions of the Nth capture group. Returns
872 /// `None` if `i` is not a valid capture group or if the capture group did
883 /// capturing group that corresponds to the entire match.
901 /// Captures represents a group of captured byte strings for a single match.
904 /// index corresponds to the next capture group in the regex. If a capture
905 /// group is named, then the matched byte string is *also* available via the
909 /// Positions returned from a capture group are always byte indices.
919 /// Returns the match associated with the capture group at index `i`. If
920 /// `i` does not correspond to a capture group, or if the capture group
926 /// group didn't participate in the match:
942 /// Returns the match for the capture group named `name`. If `name` isn't a
943 /// valid capture group or didn't match anything, then `None` is returned.
949 /// they appear in the regex. If a particular capture group didn't
958 /// capture group `name`, and writes them to the `dst` buffer given.
961 /// group (counted by order of opening parenthesis where `0` is the
963 /// underscores) corresponding to a named capture group.
965 /// If `name` isn't a valid capture group (whether the name doesn't exist
969 /// is used. e.g., `$1a` looks up the capture group named `1a` and not the
970 /// capture group at index `1`. To exert more precise control over the
971 /// name, or to refer to a capture group name that uses characters outside
974 /// sequence does not refer to a capture group name in the corresponding
985 /// group that corresponds to the full match.
1034 /// Get a group by index.
1044 /// If there is no group at the given index.
1051 .unwrap_or_else(|| panic!("no group at index '{}'", i))
1055 /// Get a group by name.
1058 /// of the group name (the index).
1066 /// If there is no group named by the given value.
1073 .unwrap_or_else(|| panic!("no group named '{}'", name))
1080 /// If a particular capture group didn't participate in the match, then `None`
1115 /// have a match at capture group `0`.