mirror of
https://gitee.com/openharmony/third_party_rust_regex
synced 2025-04-14 16:39:56 +00:00

Fixes #31 and #33. There are a number of related changes in this commit: 1. A script that generates the 'match' tests has been reintroduced. 2. The regex-dna shootout benchmark has been updated. 3. Running `cargo test` on the `regex` crate does not require `regex_macros`. 4. The documentation has been updated to use `Regex::new(...).unwrap()` instead of `regex!`. The emphasis on using `regex!` has been reduced, and a note about its unavailability in Rust 1.0 beta/stable has been added. 5. Updated Travis to test both `regex` and `regex_macros`.
regex
A Rust library for parsing, compiling, and executing regular expressions.
Usage
Add this to your Cargo.toml
:
[dependencies]
regex = "0.1.8"
and this to your crate root:
extern crate regex;
Description
Languages
Rust
91.8%
RenderScript
5.6%
C
1.9%
Python
0.4%
Shell
0.2%