• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:all +full:- +full:features

4 syntax is similar to Perl-style regular expressions, but lacks a few features
5 like look around and backreferences. In exchange, all searches execute in
10 [![Build status](https://github.com/rust-lang/regex/workflows/ci/badge.svg)](https://github.com/rus…
12 [![Rust](https://img.shields.io/badge/rust-1.41.1%2B-blue.svg?maxAge=3600)](https://github.com/rust
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();
65 // Note that all of the unwraps are actually OK for this regex
66 // because the only way for the regex to match is if all of the
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:
132 // Extract all of the strings without the null terminator from each match.
142 using the main API, `[^\x00]+` would instead match any valid UTF-8 sequence
163 // Iterate over and collect all of the matches.
177 features stabilized.
183 parser, abstract syntax and a high-level intermediate representation for
189 [Documentation `regex-syntax`.](https://docs.rs/regex-syntax)
192 ### Crate features
194 This crate comes with several features that permit tweaking the trade off
199 When all of these features are disabled, runtime match performance may be much
202 all such features, use the following `Cargo.toml` dependency configuration:
207 default-features = false
208 # regex currently requires the standard library, you must re-enable it.
209 features = ["std"]
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).
225 regex 1.0 requires Rust 1.20.0, then regex 1.0.z for all values of `z` will
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)).