#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 10/week @ 2024-02-18 194/week @ 2024-02-25 4/week @ 2024-03-03

208 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
~81K SLoC