Lines Matching +full:rust +full:- +full:version
3 A Rust library for parsing, compiling, and executing regular expressions. Its
4 syntax is similar to Perl-style regular expressions, but lacks a few features
10 [](https://github.com/rus…
12 [](https://github.com/rust…
29 Here's a simple example that matches a date in YYYY-MM-DD format and prints the
32 ```rust
38 -
40 -
43 let caps = re.captures("2010-03-14").unwrap();
54 ```rust
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
91 In Rust, it can sometimes be a pain to pass regular expressions around if
98 ```rust,ignore
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:
126 ```rust
142 using the main API, `[^\x00]+` would instead match any valid UTF-8 sequence
150 ```rust
175 SIMD optimizations are enabled automatically on Rust stable 1.27 and newer.
176 For nightly versions of Rust, this requires a recent version with the SIMD
183 parser, abstract syntax and a high-level intermediate representation for
189 [Documentation `regex-syntax`.](https://docs.rs/regex-syntax)
206 version = "1.3"
207 default-features = false
208 # regex currently requires the standard library, you must re-enable it.
213 (`regex-syntax`).
216 [in the "Crate features" section of the documentation](https://docs.rs/regex/*/#crate-features).
219 ### Minimum Rust version policy
221 This crate's minimum supported `rustc` version is `1.41.1`.
223 The current **tentative** policy is that the minimum Rust version required
224 to use this crate can be increased in minor version updates. For example, if
225 regex 1.0 requires Rust 1.20.0, then regex 1.0.z for all values of `z` will
226 also require Rust 1.20.0 or newer. However, regex 1.y for `y > 0` may require a
227 newer minimum version of Rust.
230 supported version of Rust.
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)).