#regex #dfa #regular #expression #foo

dfa-regex

使用对应的DFA匹配正则表达式

3个版本

0.0.3 2024年5月26日
0.0.2 2024年5月25日
0.0.1 2024年5月24日

#424 in 过程宏

MIT 协议

18KB
462 代码行

dfa-regex

从正则表达式创建DFA并将其用于字符串匹配。

用法

use dfa_regex::regex;

regex!(Foo => "foo");

assert!(Foo::matches("foo"));
assert!(!Foo::matches("bar"));

依赖

~260–710KB
~17K SLoC