Lines Matching refs:first
146 /// Returns the start and end byte range of the leftmost-first match in
155 /// Find the start and end location of the first word with exactly 13
192 /// Returns the capture groups corresponding to the leftmost-first
331 /// Get the first two words in some text:
349 /// Replaces the leftmost-first match with the replacement provided. The
416 /// let re = Regex::new(r"(?P<last>[^,\s]+),\s+(?P<first>\S+)").unwrap();
417 /// let result = re.replace(b"Springsteen, Bruce", &b"$first $last"[..]);
422 /// Note that using `$2` instead of `$first` or `$1` instead of `$last`
433 /// let re = Regex::new(r"(?P<first>\w+)\s+(?P<second>\w+)").unwrap();
434 /// let result = re.replace(b"deep fried", &b"${first}_$second"[..]);
540 /// of the leftmost-first match.
544 /// Typically, `a+` would match the entire first sequence of `a` in some
545 /// text, but `shortest_match` can give up as soon as it sees the first
814 /// `None` indicates an unnamed capture; the first element (capture 0, the
952 /// The first match always corresponds to the overall match of the regex.
1081 /// is yielded for that capture. The first match always corresponds to the