3 stable releases
1.2.0 | Aug 19, 2022 |
---|---|
1.1.0 | Aug 17, 2022 |
1.0.0 | Aug 16, 2022 |
#3 in #intersect
16KB
269 lines
Regex Intersect
This is a Rust library that finds out if two regexes have a non-empty intersection.
Dependency
[dependencies]
regex-intersect = "1.2.0"
For most recent version see crates.io
Usage
Import and use non_empty
:
use regex_intersect::non_empty;
assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))
Copyright
Copyright (c) 2022 @jondot. See LICENSE for further details.
Dependencies
~2–3.5MB
~81K SLoC