Lines Matching refs:regex
17 /// A regex set corresponds to the union of two or more regular expressions.
18 /// That is, a regex set will match text where at least one of its
19 /// constituent regular expressions matches. A regex set as its formulated here
22 /// regex sets and a single `Regex` with many alternates, since only one
27 /// regex set is constructed from those regexes, then searching the text
29 /// could accomplish this by compiling each regex on its own and doing two
30 /// searches over the text. The key advantage of using a regex set is that it
33 /// router for a complex web application or a user agent matcher), then a regex
59 /// 1. Does any regex in the set match?
67 /// [`Captures`][crate::Captures] objects from a regex set. If you need these
73 /// use regex::{Regex, RegexSet};
106 /// regex set and `n` is proportional to the length of the search text.
111 /// Create a new regex set with the given regular expressions.
119 /// Create a new regex set from an iterator of strings:
122 /// # use regex::RegexSet;
131 /// Create a new empty regex set.
136 /// # use regex::RegexSet;
154 /// by default. That is, if the regex does not start with `^` or `\A`, or
163 /// # use regex::RegexSet;
192 /// by default. That is, if the regex does not start with `^` or `\A`, or
201 /// # use regex::RegexSet;
214 /// // You can also test whether a particular regex matched:
263 /// slice returned has exactly as many patterns givens to this regex set,
270 /// # use regex::RegexSet;
292 /// A set of matches returned by a regex set.
305 /// Whether the regex at the given index matched.
307 /// The index for a regex is determined by its insertion order upon the
322 /// Returns an iterator over indexes in the regex that matched.
325 /// the index corresponds to the index of the regex that matched with
350 /// An owned iterator over the set of matches from a regex set.
353 /// index corresponds to the index of the regex that matched with respect to
390 /// A borrowed iterator over the set of matches from a regex set.
395 /// index corresponds to the index of the regex that matched with respect to
457 /// # use regex::RegexSet;
474 /// // Try again, but with text that doesn't match any regex in the set.
486 /// # use regex::bytes::RegexSet;
503 /// // Try again, but with text that doesn't match any regex in the set.