#regex #match #intersect

regex-intersect

Find out if two regexes have a non-empty intersection

3 stable releases

1.2.0 Aug 19, 2022
1.1.0 Aug 17, 2022
1.0.0 Aug 16, 2022

#4 in #intersect

Download history 6/week @ 2024-04-04 4/week @ 2024-05-09 9/week @ 2024-05-16 11/week @ 2024-05-23 5/week @ 2024-05-30 3/week @ 2024-06-06 10/week @ 2024-06-13 35/week @ 2024-06-20 7/week @ 2024-06-27 55/week @ 2024-07-11 144/week @ 2024-07-18

214 downloads per month

Apache-2.0

16KB
269 lines

Regex Intersect

github crates.io docs.rs build status

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
~80K SLoC