Regex Intersect
===============
[](https://github.com/jondot/regex-intersect)
[](https://crates.io/crates/regex-intersect)
[](https://docs.rs/regex-intersect)
[](https://github.com/jondot/regex-intersect/actions?query=branch%3Amaster)
This is a Rust library that finds out if two regexes have a non-empty intersection.
## Dependency
```toml
[dependencies]
regex-intersect = "1.2.0"
```
For most recent version see [crates.io](https://crates.io/crates/regex-intersect)
## Usage
Import and use `non_empty`:
```rust
use regex_intersect::non_empty;
assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))
```
# Copyright
Copyright (c) 2022 [@jondot](http://twitter.com/jondot). See [LICENSE](LICENSE.txt) for further details.