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