Registry / utility / regex-automata

regex-automata

JSON →
library0.4.14rscratesunverified

Automata construction and matching using regular expressions.

# Cargo.toml [dependencies] regex-automata = "0.4.14"
INSTALL
IMPORT
SIG · REGEX-AUTOMATA
R
regex-automata
utilityrustv0.4.14
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.

Automaton
✓ use regex_automata::dfa::Automaton;

Create a DFA from a regex pattern.

use regex_automata::dfa::Automaton; use regex_automata::dfa::dense::DFA; fn main() { let dfa = DFA::new(r"[0-9]+").unwrap(); let state = dfa.start_state(); println!("DFA created, start state: {:?}", state); }
Debug
Known issues
gotchaThe API is low-level and complex; most users should use the `regex` crate instead.
fix
Consider using `regex::Regex` for simpler use cases.
affects: >=0.1.0
Upgrade
Version history
0.4.14latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
regex-automata — cargo add regex-automata · libregistry