Lines Matching refs:first
201 /// Returns the start and end byte range of the leftmost-first match in
210 /// Find the start and end location of the first word with exactly 13
248 /// Returns the capture groups corresponding to the leftmost-first
384 /// Get the first two words in some text:
402 /// Replaces the leftmost-first match with the replacement provided.
465 /// let re = Regex::new(r"(?P<last>[^,\s]+),\s+(?P<first>\S+)").unwrap();
466 /// let result = re.replace("Springsteen, Bruce", "$first $last");
471 /// Note that using `$2` instead of `$first` or `$1` instead of `$last`
482 /// let re = Regex::new(r"(?P<first>\w+)\s+(?P<second>\w+)").unwrap();
483 /// let result = re.replace("deep fried", "${first}_$second");
598 /// of the leftmost-first match.
602 /// Typically, `a+` would match the entire first sequence of `a` in some
603 /// text, but `shortest_match` can give up as soon as it sees the first
746 /// `None` indicates an unnamed capture; the first element (capture 0, the
962 /// The first match always corresponds to the overall match of the regex.
1076 /// is yielded for that capture. The first match always corresponds to the