Function non_empty

Source
pub fn non_empty(left: &str, right: &str) -> Result<bool, IntersectError>
Expand description

Check if left and right contains a non empty intersection.

§Examples

use regex_intersect::non_empty;
assert!(non_empty("a.*", "ab.*cd").expect("regex expressions should parse"))

§Errors

Returns an error if cannot parse one of the expressions