Registry / utility / fancy-regex

fancy-regex

JSON →
library0.18.0rscratesunverified

An implementation of regexes, supporting a relatively rich set of features, including backreferences and look-around. Aims to be compatible with Oniguruma syntax when the relevant flag is set.

# Cargo.toml [dependencies] fancy-regex = "0.18.0"
INSTALL
IMPORT
SIG · FANCY-REGEX
F
fancy-regex
utilityrustv0.18.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Regex
use fancy_regex::Regex;

Match a case-insensitive pattern using fancy-regex.

use fancy_regex::Regex; fn main() -> Result<(), Box<dyn std::error::Error>> { let re = Regex::new(r"(?i)hello")?; let result = re.is_match("Hello, world!")?; println!("Match: {}", result); Ok(()) }
Debug
Known issues
gotchaPerformance may be slower than regex crate for simple patterns
fix
Use the regex crate for simple patterns without backreferences or look-around.
affects: *
Upgrade
Version history
0.18.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fancy-regex — cargo add fancy-regex · libregistry