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

toml [dependencies] regex-intersect = "0.1.0"

For most recent version see crates.io

Usage

Import and use non_empty:

rust use regex_intersect::non_empty; assert!(non_empty("a.*", "ab.*cd"))

Copyright

Copyright (c) 2022 @jondot. See LICENSE for further details.