This is a Rust library that finds out if two regexes have a non-empty intersection.
[dependencies]
regex-intersect = "1.2.0"
For most recent version see crates.io
Import and use non_empty
:
use regex_intersect::non_empty;
assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))
Copyright (c) 2022 @jondot. See LICENSE for further details.