Lines Matching +full:- +full:- +full:disable +full:- +full:docs
4 syntax is similar to Perl-style regular expressions, but lacks a few features
10 [](https://github.com/rus…
12 [](https://github.com/rust…
16 [Module documentation with examples](https://docs.rs/regex).
22 [`Regex` type](https://docs.rs/regex/*/regex/struct.Regex.html).
29 Here's a simple example that matches a date in YYYY-MM-DD format and prints the
38 -
40 -
43 let caps = re.captures("2010-03-14").unwrap();
58 On 2010-03-14, foo happened. On 2014-10-14, bar happened.
62 let re = Regex::new(r"(\d{4})-(\d{2})-(\d{2})").unwrap();
85 It is an anti-pattern to compile the same regular expression in a loop since
101 fn some_helper_function(text: &str) -> bool {
115 `&str` for searching. In Rust, an `&str` is required to be valid UTF-8, which
121 `regex::bytes::Regex`, while `.` will match any *UTF-8 encoded Unicode scalar
124 This example shows how to find all null-terminated strings in a slice of bytes:
142 using the main API, `[^\x00]+` would instead match any valid UTF-8 sequence
183 parser, abstract syntax and a high-level intermediate representation for
189 [Documentation `regex-syntax`.](https://docs.rs/regex-syntax)
196 crate can selectively disable Unicode tables, or choose from a variety of
197 optimizations performed by this crate to disable.
201 necessary, then such a configuration is perfectly serviceable. To disable
207 default-features = false
208 # regex currently requires the standard library, you must re-enable it.
213 (`regex-syntax`).
215 The full set of features one can disable are
216 [in the "Crate features" section of the documentation](https://docs.rs/regex/*/#crate-features).
237 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
238 https://www.apache.org/licenses/LICENSE-2.0)
239 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
244 The data in `regex-syntax/src/unicode_tables/` is licensed under the Unicode
246 ([LICENSE-UNICODE](https://www.unicode.org/copyright.html#License)).