Crates.io | regex-anre |
lib.rs | regex-anre |
version | |
source | src |
created_at | 2024-10-31 00:03:56.759176 |
updated_at | 2024-12-26 13:58:09.602569 |
description | regex-anre is a brand new and full-featured regex engine for Rust with JIT and ANRE language support. |
homepage | https://hemashushu.github.io/works/anre |
repository | https://github.com/hemashushu/regex-anre |
max_upload_size | |
id | 1429368 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Regex-anre is a lightweight and full-featured regular expression engine, it supports both standard regular expression and the new ANRE language. It also supports JIT and has excellent performance.
Regex-anre provides the same API as the Rust standard regular expression library, so you can directly replace it with Regex-anre without changing any code.
use regex_anre::Regex;
let re = Regex::new("...").unwrap();
// or, create a regex using ANRE language:
// let re = Regex::from_anre("...").unwrap();
let mut matches = re.find_iter("...");
for m in matches {
println("{}", m.as_str());
}
While this library is avaiable, the documentation is still being written. Or refer to the documentation for the Rust standard regex library.
ANRE is a brand new regex language that offers all the capabilities of traditional regex but in much simpler form.
Designed with user-friendliness in mind, ANRE requires no prior knowledge to get started and can be seamlessly converted to and from traditional regex.
(ANRE is short for XiaoXuan Regular Expression)
The documentation is still being written. You can refer to the unit test code in the source file
process.rs
if you want to see examples in ANRE language.