Crates.io | dfa-regex |
lib.rs | dfa-regex |
version | 0.0.3 |
source | src |
created_at | 2024-05-24 22:19:04.110201 |
updated_at | 2024-05-26 00:41:17.631806 |
description | Match regular expressions using a corresponding DFA |
homepage | |
repository | https://github.com/mrvillage/dfa-regex |
max_upload_size | |
id | 1251589 |
size | 22,791 |
Create a DFA from a regular expression and use it for matching strings.
use dfa_regex::regex;
regex!(Foo => "foo");
assert!(Foo::matches("foo"));
assert!(!Foo::matches("bar"));