#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

#6 in #intersect

Download history 1/week @ 2024-12-07 72/week @ 2025-01-04 10/week @ 2025-01-11 12/week @ 2025-01-18 8/week @ 2025-02-01 203/week @ 2025-02-08 104/week @ 2025-02-15 79/week @ 2025-02-22 88/week @ 2025-03-01 27/week @ 2025-03-08

354 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

~1.9–3.5MB
~80K SLoC